build-scripts reviewed
This commit is contained in:
+6
-10
@@ -1,14 +1,6 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
SOURCE_URL="http://www.mpfr.org/$P-$V/$P-$V.tar.gz"
|
||||
|
||||
pbuild::configure() {
|
||||
"${SRC_DIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--with-gmp=$GMP_PREFIX \
|
||||
--disable-shared \
|
||||
|| exit 1
|
||||
}
|
||||
pbuild::set_download_url "http://www.mpfr.org/$P-$V/$P-$V.tar.gz"
|
||||
|
||||
# use system gcc to compile
|
||||
declare -rx CC=gcc
|
||||
@@ -16,4 +8,8 @@ declare -rx CC=gcc
|
||||
module use 'Libraries'
|
||||
|
||||
pbuild::add_to_group 'Libraries'
|
||||
pbuild::make_all
|
||||
|
||||
pbuild::pre_configure() {
|
||||
pbuild::add_configure_args "--with-gmp=${GMP_PREFIX}"
|
||||
pbuild::add_configure_args "--disable-shared"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user