Use em-config to calculate the path
This commit is contained in:
3
Makefile
3
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.
|
# Add custom sysroot to library & macro search paths.
|
||||||
export LDFLAGS += -L$(SYSROOT)/lib
|
export LDFLAGS += -L$(SYSROOT)/lib
|
||||||
export ACLOCAL_PATH := $(SYSROOT)/share/aclocal:$(ACLOCAL_PATH)
|
|
||||||
|
|
||||||
# Common linking flags for all targets.
|
# Common linking flags for all targets.
|
||||||
export LDFLAGS += -s DYNAMIC_EXECUTION=0 -s AUTO_JS_LIBRARIES=0 -s AUTO_NATIVE_LIBRARIES=0
|
export LDFLAGS += -s DYNAMIC_EXECUTION=0 -s AUTO_JS_LIBRARIES=0 -s AUTO_NATIVE_LIBRARIES=0
|
||||||
|
|||||||
Reference in New Issue
Block a user