Use em-config to calculate the path

This commit is contained in:
Ingvar Stepanyan
2023-11-15 00:51:18 +00:00
parent 758b5bb95b
commit 0d17b35897

View File

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