diff --git a/Makefile b/Makefile index 53f7605..ef73816 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,7 @@ -SYSROOT = /emsdk/upstream/emscripten/cache/sysroot +SYSROOT := $(shell em-config CACHE)/sysroot # Add custom sysroot to library & macro search paths. export LDFLAGS += -L$(SYSROOT)/lib -export ACLOCAL_PATH := $(SYSROOT)/share/aclocal:$(ACLOCAL_PATH) # Common linking flags for all targets. export LDFLAGS += -s DYNAMIC_EXECUTION=0 -s AUTO_JS_LIBRARIES=0 -s AUTO_NATIVE_LIBRARIES=0