- build-script reviewed
- build library with -fPIC
- variant 6.1.2-1 added
This commit is contained in:
2018-10-11 10:51:08 +02:00
parent 42f5341810
commit 716641894b
2 changed files with 6 additions and 9 deletions

View File

@@ -2,3 +2,4 @@ gmp/6.0.0 stable
gmp/6.1.0 stable
gmp/6.1.1 stable
gmp/6.1.2 stable
gmp/6.1.2-1 stable

View File

@@ -1,18 +1,14 @@
#!/usr/bin/env modbuild
SOURCE_URL="https://gmplib.org/download/$P/$P-$V.tar.bz2"
pbuild::configure() {
"${SRC_DIR}"/configure \
--prefix="${PREFIX}" \
--disable-shared \
|| exit 1
}
pbuild::set_download_url "https://gmplib.org/download/$P/$P-$V_PKG.tar.bz2"
pbuild::add_to_group 'Libraries'
# use system gcc to compile
declare -rx CC=gcc
declare -rx CPP=/usr/bin/cpp
pbuild::add_to_group 'Libraries'
pbuild::add_configure_args "--disable-shared"
pbuild::add_configure_args "--with-pic"
pbuild::make_all