doc: Better explain GNU ld's dislike of ld64's options

There's also now more than a single option being special cased for
darwin.
pull/764/head
fanquake 5 years ago
parent eef90c14ed
commit cd24f37ea9
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

@ -757,7 +757,9 @@ if test x$use_hardening != xno; then
esac
fi
dnl this flag screws up non-darwin gcc even when the check fails. special-case it.
dnl These flags are specific to ld64, and may cause issues with other linkers.
dnl For example: GNU ld will intepret -dead_strip as -de and then try and use
dnl "ad_strip" as the symbol for the entry point.
if test x$TARGET_OS = xdarwin; then
AX_CHECK_LINK_FLAG([[-Wl,-dead_strip]], [LDFLAGS="$LDFLAGS -Wl,-dead_strip"])
AX_CHECK_LINK_FLAG([[-Wl,-dead_strip_dylibs]], [LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"])

Loading…
Cancel
Save