nspr: fix PIE build.

This commit is contained in:
Juan RP 2015-11-18 17:19:11 +01:00
parent 7fe9ca426c
commit 6e258377fd
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'nspr' # Template file for 'nspr'
pkgname=nspr pkgname=nspr
version=4.10.10 version=4.10.10
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
build_wrksrc="nspr" build_wrksrc="nspr"
makedepends="zlib-devel" makedepends="zlib-devel"
@ -13,7 +13,7 @@ distfiles="${MOZILLA_SITE}/nspr/releases/v${version}/src/${pkgname}-${version}.t
checksum=343614971c30520d0fa55f4af0a72578e2d8674bb71caf7187490c3379523107 checksum=343614971c30520d0fa55f4af0a72578e2d8674bb71caf7187490c3379523107
do_configure() { do_configure() {
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" CFLAGS="$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 if [ "$CROSS_BUILD" ]; then
_args+=" --target=$XBPS_CROSS_TRIPLET" _args+=" --target=$XBPS_CROSS_TRIPLET"