Skip to content

Commit

Permalink
GSL: New version 2.7.1 (#5019)
Browse files Browse the repository at this point in the history
* GSL: New version 2.7.1

* GSL: Keep version at 2.7.1

* [GSL@2] Fix for aarch64-apple-darwin

Co-authored-by: Mosè Giordano <[email protected]>
  • Loading branch information
eschnett and giordano authored Jun 11, 2022
1 parent a7c036b commit 789ea60
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions G/GSL/GSL@2/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,26 @@
using BinaryBuilder

name = "GSL"
version = v"2.7.1" # <--- This version number is a lie to build for experimental platforms
version_string = "2.7.1"
version = v"2.7.2" # <--- This version number is a lie to keep it different from our
# previous fake "2.7.1" build, as they have different ABI because of
# https://git.savannah.gnu.org/cgit/gsl.git/commit/configure.ac?id=77e7c7d008707dace56626020eaa6181912e9841

# Collection of sources required to build GSL
sources = [
ArchiveSource("http://ftp.gnu.org/gnu/gsl/gsl-$(version.major).$(version.minor).tar.gz",
"efbbf3785da0e53038be7907500628b466152dbc3c173a87de1b5eba2e23602b"),
ArchiveSource("http://ftp.gnu.org/gnu/gsl/gsl-$(version_string).tar.gz",
"dcb0fbd43048832b757ff9942691a8dd70026d5da0ff85601e52687f6deeb34b"),
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/gsl-*/
if [[ "${target}" == aarch64-apple-darwin* ]]; then
# aclocal.m4 has some lines where it expects `MACOSX_DEPLOYMENT_TARGET` to be up to
# version 10. Let's pretend to be 10.16, as many tools do to make old build systems
# happy.
export MACOSX_DEPLOYMENT_TARGET="10.16"
fi
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target} --disable-static
make -j${nproc}
make install
Expand Down

0 comments on commit 789ea60

Please sign in to comment.