aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2020-04-27 10:54:13 +0800
committerfanquake <fanquake@gmail.com>2020-04-27 11:08:51 +0800
commitcd24f37ea9168bd56b8c518ea6125e242cc4213d (patch)
tree8577f45cb9881d2b600515664271319e1d7eb07b /configure.ac
parenteef90c14ed0f559e3f6e187341009270b84f45cb (diff)
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.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 546d00de1b..473fe2064a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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"])