aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikhil Benesch <nikhil.benesch@gmail.com>2021-12-22 18:58:17 -0500
committerGreg Hudson <ghudson@mit.edu>2021-12-29 17:24:53 -0500
commit3c66c1fec7ce4edeff284a5e4abe32d0b4398539 (patch)
treecf61bbbdf784271ac5b284effc3a47fcc3182e9b
parentb2463149c88628a5107ec53a6b98d685cd756473 (diff)
downloadkrb5-3c66c1fec7ce4edeff284a5e4abe32d0b4398539.zip
krb5-3c66c1fec7ce4edeff284a5e4abe32d0b4398539.tar.gz
krb5-3c66c1fec7ce4edeff284a5e4abe32d0b4398539.tar.bz2
Remove unnecessary flag in macOS build
The configuration logic for adding the `-search_paths_first` linker flag on Darwin does not correctly handle cross compilation. It should check the value of $krb5_cv_host rather than `uname -s` to detect when the compilation target is Darwin, rather than the build machine. It turns out `-search_paths_first` has been the default behavior of ld on macOS since XCode 4. So just remove that bit of logic entirely. (The flag was added in commit acd27af0e845f8b93de2e226cc2ec9ac8af52077 in 2004; XCode 4 was released in 2010.) [ghudson@mit.edu: edited commit message]
-rw-r--r--src/aclocal.m44
1 files changed, 0 insertions, 4 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 0ea4d18..9920476 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -595,10 +595,6 @@ if test "$GCC" = yes ; then
CFLAGS="$CFLAGS -fno-common"
;;
esac
- case "$LD $LDFLAGS" in
- *-Wl,-search_paths_first*) ;;
- *) LDFLAGS="${LDFLAGS} -Wl,-search_paths_first" ;;
- esac
fi
else
if test "`uname -s`" = AIX ; then