gmp: fix bootstrap build: run libtoolize only in cross builds.

This commit is contained in:
Juan RP 2015-01-04 12:16:55 +01:00
parent 6100f83bcf
commit b70d0fa88f
1 changed files with 7 additions and 4 deletions

View File

@ -5,7 +5,7 @@ revision=2
bootstrap=yes
build_style=gnu-configure
configure_args="--enable-cxx"
hostmakedepends="m4 libtool"
hostmakedepends="m4"
makedepends="zlib-devel"
short_desc="Library for arbitrary precision arithmetic"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -14,9 +14,12 @@ homepage="http://gmplib.org/"
distfiles="http://mirror.anl.gov/pub/gnu/gmp/gmp-${version}a.tar.xz"
checksum=9156d32edac6955bc53b0218f5f3763facb890b73a835d5e1b901dcf8eb8b764
pre_configure() {
libtoolize -f
}
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" libtool"
pre_configure() {
libtoolize -f
}
fi
gmpxx_package() {
short_desc+=" - C++ support"