Browse Source

Use -Wl,-ld_classic linker flag on new macOS systems

Signed-off-by: falkTX <falktx@falktx.com>
pull/28/head
falkTX 1 year ago
parent
commit
c119fadda3
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      setup/env.sh

+ 3
- 0
setup/env.sh View File

@@ -185,6 +185,9 @@ if [ -z "${PAWPAW_SKIP_LTO}" ] || [ "${PAWPAW_SKIP_LTO}" -eq 0 ]; then
fi

if [ "${MACOS}" -eq 1 ]; then
if ld -v 2>&1 | grep -q ld-classic; 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"
fi


Loading…
Cancel
Save