build 656 Bytes
Newer Older
gsell's avatar
gsell committed
1
#!/usr/bin/env modbuild
gsell's avatar
gsell committed
2

gsell's avatar
gsell committed
3
pbuild::configure() {
4
	"${MODULE_SRCDIR}"/configure \
gsell's avatar
gsell committed
5 6 7 8 9 10 11
		--prefix="${PREFIX}" \
		--enable-languages=c,c++,objc,obj-c++,lto,fortran \
		--with-gmp="${GMP_PREFIX}" \
		--with-mpfr="${MPFR_PREFIX}" \
		--with-mpc="${MPC_PREFIX}" \
		--enable-lto \
		--disable-multilib \
gsell's avatar
gsell committed
12
		--with-pkgversion="PSI Environment Module" \
gsell's avatar
gsell committed
13 14 15 16 17 18
		|| exit 1
}


# use system gcc to compile
declare -rx CC=gcc
gsell's avatar
gsell committed
19
declare -rx CXX=g++
gsell's avatar
gsell committed
20

gsell's avatar
gsell committed
21
module use 'Libraries'
gsell's avatar
gsell committed
22
pbuild::add_to_group 'Programming'
23
#pbuild::set_build_dependencies 'gmp' 'mpfr' 'mpc'
gsell's avatar
gsell committed
24 25
pbuild::set_docfiles 'COPYING' 'COPYING.LIB' 'COPYING.RUNTIME' 'COPYING3' 'COPYING3.LIB' 'NEWS' 'README'
pbuild::make_all
gsell's avatar
gsell committed
26