From 0d17b35897c2037d59a0ca3c845052b53830770c Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Wed, 15 Nov 2023 00:51:18 +0000 Subject: [PATCH] Use em-config to calculate the path --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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