Skip to content

Commit

Permalink
Add MACOS_NO_DEAD_STRIP make option
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed May 4, 2024
1 parent a05231b commit a887787
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile.base.mk
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ BASE_OPTS += -mtune=generic -msse -msse2 -mfpmath=sse
endif

ifeq ($(MACOS),true)
ifneq ($(MACOS_NO_DEAD_STRIP),true)
LINK_OPTS += -Wl,-dead_strip,-dead_strip_dylibs
endif
else ifeq ($(WASM),true)
LINK_OPTS += -O3
LINK_OPTS += -Wl,--gc-sections
Expand Down

0 comments on commit a887787

Please sign in to comment.