nspr: unbreak cross.

This commit is contained in:
Juan RP 2015-05-08 08:28:47 +02:00
parent 1530f1eb94
commit 78e07e35d1
1 changed files with 2 additions and 1 deletions

View File

@ -13,14 +13,15 @@ distfiles="${MOZILLA_SITE}/nspr/releases/v${version}/src/${pkgname}-${version}.t
checksum=507ea57c525c0c524dae4857a642b4ef5c9d795518754c7f83422d22fe544a15
do_configure() {
CFLAGS+=" -D_PR_POLL_AVAILABLE -D_PR_HAVE_OFF64_T -D_PR_INET6 -D_PR_HAVE_INET_NTOP -D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO -D_PR_INET6_PROBE"
if [ "$CROSS_BUILD" ]; then
unset CFLAGS
_args+=" --target=$XBPS_CROSS_TRIPLET"
fi
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
_args+=" --enable-64bit"
fi
CFLAGS+=" -D_PR_POLL_AVAILABLE -D_PR_HAVE_OFF64_T -D_PR_INET6 -D_PR_HAVE_INET_NTOP -D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO -D_PR_INET6_PROBE"
./configure --prefix=/usr --libdir=/usr/lib \
--includedir=/usr/include/nspr --enable-optimize \
--enable-debug --enable-ipv6 ${_args}