1 # FP_LD_NO_FIXUP_CHAINS
3 # See if whether we are using a version of ld64 on darwin platforms which
4 # requires us to pass -no_fixup_chains
7 # $2 = the name of the linker flags variable when linking with $CC
8 AC_DEFUN([FP_LD_NO_FIXUP_CHAINS], [
11 AC_MSG_CHECKING([whether ld64 requires -no_fixup_chains])
12 echo 'int main(void) {return 0;}' > conftest.c
13 if $CC -o conftest.o -Wl,-no_fixup_chains conftest.c > /dev/null 2>&1
15 $2="$$2 -Wl,-no_fixup_chains"
20 rm -f conftest.c conftest.o