From 6add480400e4b36e7926aed93c69e1457152b553 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Fri, 6 Aug 2021 22:14:41 +0000 Subject: [PATCH] Reuse Emscripten's sysroot --- Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index cd62fb7..de0923d 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,7 @@ -SYSROOT = $(PWD)/deps/.install +SYSROOT = $(EM_CACHE)/sysroot -# Add custom sysroot to paths. -export CPPFLAGS += -I$(SYSROOT)/include -export LDFLAGS += -L$(SYSROOT)/lib -export PATH := $(SYSROOT)/bin:$(PATH) -export PKG_CONFIG_PATH = $(SYSROOT)/lib/pkgconfig +# Add custom sysroot to autoconf macro search +# (we need this because we use custom local copy of libtool) export ACLOCAL_PATH := $(SYSROOT)/share/aclocal:$(ACLOCAL_PATH) # Common linking flags for all targets.