Skip to content

Commit

Permalink
gsl: drop a breaking ldflag
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed May 30, 2024
1 parent 65439eb commit be27ae4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions math/gsl/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
19 changes: 19 additions & 0 deletions math/gsl/files/patch-fix-linking.diff
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit be27ae4

Please sign in to comment.