nspr: unbreak musl cross.

This commit is contained in:
Juan RP 2015-05-27 08:13:42 +02:00
parent c849afbbad
commit cea5a67b30

View File

@ -1,7 +1,7 @@
# Template file for 'nspr'
pkgname=nspr
version=4.10.8
revision=3
revision=4
build_style=gnu-configure
build_wrksrc="nspr"
makedepends="zlib-devel"
@ -13,16 +13,16 @@ 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"
CFLAGS="$XBPS_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
case "$XBPS_TARGET_MACHINE" in
x86_64*) _args+=" --enable-64bit";;
esac
./configure --prefix=/usr --libdir=/usr/lib \
./configure --build=${XBPS_TRIPLET} --prefix=/usr --libdir=/usr/lib \
--includedir=/usr/include/nspr --enable-optimize \
--enable-debug --enable-ipv6 ${_args}
}