Skip to content

Commit

Permalink
Use em-config to calculate the path
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Nov 15, 2023
1 parent 758b5bb commit 0d17b35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0d17b35

Please sign in to comment.