mpc.build 385 Bytes
Newer Older
gsell's avatar
gsell committed
1 2
#!/bin/bash

3
source "$(dirname $0)/../../lib/libem.bash"
gsell's avatar
gsell committed
4 5

function em.configure() {
6
	"${MODULE_SRCDIR}"/configure \
gsell's avatar
gsell committed
7 8 9 10 11 12 13 14 15 16
		--prefix="${PREFIX}" \
		--with-gmp=$GMP_PREFIX \
		--with-mpfr=$MPFR_PREFIX \
		--disable-shared \
		|| exit 1
}

# use system gcc to compile
declare -rx CC=gcc

17 18
module use 'Libraries'
em.add_to_family 'Libraries'
gsell's avatar
gsell committed
19
em.set_build_dependencies 'gmp' 'mpfr'
gsell's avatar
gsell committed
20 21
em.make_all