Browse Source

Add PAWPAW_SKIP_MACOS_DEAD_STRIP option

Signed-off-by: falkTX <falktx@falktx.com>
test-github-breakage
falkTX 1 year ago
parent
commit
579d1441d0
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      setup/env.sh

+ 4
- 1
setup/env.sh View File

@@ -195,7 +195,10 @@ if [ "${MACOS}" -eq 1 ]; then
LINK_FLAGS+=" -Wl,-ld_classic"
fi
if [ -z "${PAWPAW_SKIP_STRIPPING}" ] || [ "${PAWPAW_SKIP_STRIPPING}" -eq 0 ]; then
LINK_FLAGS+=" -Wl,-dead_strip,-dead_strip_dylibs,-x"
if [ -z "${PAWPAW_SKIP_MACOS_DEAD_STRIP}" ] || [ "${PAWPAW_SKIP_MACOS_DEAD_STRIP}" -eq 0 ]; then
LINK_FLAGS+=" -Wl,-dead_strip,-dead_strip_dylibs"
fi
LINK_FLAGS+=" -Wl,-x"
fi
elif [ "${WASM}" -eq 1 ]; then
LINK_FLAGS+=" -Wl,--gc-sections"


Loading…
Cancel
Save