From 716641894b664ebeac13a6945b9af1cebd3059c8 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 11 Oct 2018 10:51:08 +0200 Subject: [PATCH] gmp - build-script reviewed - build library with -fPIC - variant 6.1.2-1 added --- Libraries/gmp/6/variants | 1 + Libraries/gmp/build | 14 +++++--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Libraries/gmp/6/variants b/Libraries/gmp/6/variants index 0f82ba5..3b8e90f 100644 --- a/Libraries/gmp/6/variants +++ b/Libraries/gmp/6/variants @@ -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 diff --git a/Libraries/gmp/build b/Libraries/gmp/build index e68eeba..4f302ba 100755 --- a/Libraries/gmp/build +++ b/Libraries/gmp/build @@ -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