From 78e07e35d1fd49c5489f26dfc3d8436a30017332 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 8 May 2015 08:28:47 +0200 Subject: [PATCH] nspr: unbreak cross. --- srcpkgs/nspr/template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srcpkgs/nspr/template b/srcpkgs/nspr/template index ea70b49ba5..ca4e4a1e84 100644 --- a/srcpkgs/nspr/template +++ b/srcpkgs/nspr/template @@ -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}