From f0173af75358427ba2d2909ec265d6de4487606c Mon Sep 17 00:00:00 2001 From: "Paul m. p. P" Date: Wed, 7 Aug 2019 16:13:09 +0200 Subject: [PATCH] Update Makefile --- ports/javascript/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/javascript/Makefile b/ports/javascript/Makefile index c90935b9c..f2ff17ffe 100644 --- a/ports/javascript/Makefile +++ b/ports/javascript/Makefile @@ -15,7 +15,7 @@ INC += -I$(BUILD) #default debug options JSFLAGS ?= -O0 -g4 --source-map-base http://localhost:8000 -LDFLAGS ?= -m32 +LDFLAGS ?= -m32 -Wl,--gc-sections ifdef EMSCRIPTEN # only for profiling, remove -s EMTERPRETIFY_ADVISE=1 when your EMTERPRETIFY_WHITELIST is ok @@ -29,7 +29,7 @@ ifdef EMSCRIPTEN #check if not using emscripten-upstream branch ifeq (,$(findstring upstream/bin, $(EMMAKEN_COMPILER))) JSFLAGS += -s "BINARYEN_TRAP_MODE='clamp'" - LDFLAGS += -Wl,-Map=$@.map,--cref -Wl,--gc-sections + LDFLAGS += -Wl,-Map=$@.map,--cref endif CC = emcc