Skip to content

Commit

Permalink
GMP 6.2.0 (#1159)
Browse files Browse the repository at this point in the history
Also remove bits of the build script that are no longer relevant
  • Loading branch information
fingolfin authored Jun 16, 2020
1 parent f92fa36 commit 415ead0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 512 deletions.
15 changes: 2 additions & 13 deletions G/GMP/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,20 @@ using BinaryBuilder

# Collection of sources required to build GMP
name = "GMP"
version = v"6.1.2"
version = v"6.2.0"

sources = [
ArchiveSource("https://gmplib.org/download/gmp/gmp-$(version).tar.bz2",
"5275bb04f4863a13516b2f39392ac5e272f5e1bb8057b18aec1c9b79d73d8fb2"),
"f51c99cb114deb21a60075ffb494c1a210eb9d7cb729ed042ddb7de9534451ea"),
DirectorySource("./bundled"),
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/gmp-*
# Update config.status
update_configure_scripts
# Patch `configure` to include `$LDFLAGS` in its tests. This is necessary on FreeBSD.
atomic_patch -p1 ${WORKSPACE}/srcdir/patches/configure.patch
# Include Julia-carried patches
atomic_patch -p1 ${WORKSPACE}/srcdir/patches/gmp_alloc_overflow_func.patch
atomic_patch -p1 ${WORKSPACE}/srcdir/patches/gmp-exception.patch
flags=(--enable-cxx --enable-shared --disable-static)
Expand All @@ -35,10 +28,6 @@ fi
./configure --prefix=$prefix --build=${MACHTYPE} --host=${target} ${flags[@]}
# Something is broken in the libtool that gets generated on macOS; I can't
# figure out why, but `hardcode_action` is set to blank for CXX files. /shrug
sed -i -e 's&hardcode_action=$&hardcode_action=immediate&g' libtool
make -j${nproc}
make install
Expand Down
Loading

0 comments on commit 415ead0

Please sign in to comment.