Skip to content

Commit cd24f37

Browse files
committed
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.
1 parent eef90c1 commit cd24f37

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configure.ac

+3-1
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,9 @@ if test x$use_hardening != xno; then
757757
esac
758758
fi
759759

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

0 commit comments

Comments
 (0)