Reuse Emscripten's sysroot

This commit is contained in:
Ingvar Stepanyan
2021-08-06 22:14:41 +00:00
parent 3e071027d2
commit 6add480400

View File

@@ -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.