Browse Source

Strip macOS binaries

tags/v2.3.1
falkTX 3 years ago
parent
commit
bf8f6912f6
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      source/Makefile.mk

+ 3
- 0
source/Makefile.mk View File

@@ -165,6 +165,9 @@ ifeq ($(MACOS),true)
# MacOS linker flags
BASE_FLAGS += -Wno-deprecated-declarations
LINK_OPTS = -fdata-sections -ffunction-sections -Wl,-dead_strip -Wl,-dead_strip_dylibs
ifneq ($(SKIP_STRIPPING),true)
LINK_OPTS += -Wl,-x
endif
else
# Common linker flags
LINK_OPTS = -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-O1 -Wl,--as-needed


Loading…
Cancel
Save