gsl: drop a breaking ldflag

This commit is contained in:
barracuda156
2024-05-30 14:49:48 +08:00
committed by Renee Otten
parent 5eb4cc5b76
commit 90be777d2c
2 changed files with 24 additions and 0 deletions
+5
View File
@@ -44,6 +44,11 @@ configure.checks.implicit_function_declaration.whitelist-append \
finite \
strchr
# Version 2.8 added -Wl,-no_fixup_chains flag,
# which is not universally supported. Drop it.
# Related: https://github.com/haskell/zlib/issues/53
patchfiles-append patch-fix-linking.diff
test.run yes
test.target check
+19
View File
@@ -0,0 +1,19 @@
The linker may not understand this flag:
ld: unknown option: -no_fixup_chains
collect2: error: ld returned 1 exit status
--- configure 2024-05-25 21:26:49.000000000 +0800
+++ configure 2024-05-30 14:02:19.000000000 +0800
@@ -8761,10 +8761,11 @@
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
darwin*)
case $MACOSX_DEPLOYMENT_TARGET,$host in
+ # This is correct, later PowerPC uses -undefined dynamic_lookup
10.[012],*|,*powerpc*-darwin[5-8]*)
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
*)
- _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup $wl-no_fixup_chains' ;;
+ _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
esac
;;
esac