Skip to content

Commit

Permalink
Use -Wl,-ld_classic linker flag on new macOS systems
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Jan 8, 2024
1 parent cfa9dc5 commit c119fad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup/env.sh
Expand Up @@ -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
Expand Down

0 comments on commit c119fad

Please sign in to comment.