mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
nspr: unbreak cross.
This commit is contained in:
parent
1530f1eb94
commit
78e07e35d1
1 changed files with 2 additions and 1 deletions
|
@ -13,14 +13,15 @@ distfiles="${MOZILLA_SITE}/nspr/releases/v${version}/src/${pkgname}-${version}.t
|
||||||
checksum=507ea57c525c0c524dae4857a642b4ef5c9d795518754c7f83422d22fe544a15
|
checksum=507ea57c525c0c524dae4857a642b4ef5c9d795518754c7f83422d22fe544a15
|
||||||
|
|
||||||
do_configure() {
|
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
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
unset CFLAGS
|
||||||
_args+=" --target=$XBPS_CROSS_TRIPLET"
|
_args+=" --target=$XBPS_CROSS_TRIPLET"
|
||||||
fi
|
fi
|
||||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||||
_args+=" --enable-64bit"
|
_args+=" --enable-64bit"
|
||||||
fi
|
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 \
|
./configure --prefix=/usr --libdir=/usr/lib \
|
||||||
--includedir=/usr/include/nspr --enable-optimize \
|
--includedir=/usr/include/nspr --enable-optimize \
|
||||||
--enable-debug --enable-ipv6 ${_args}
|
--enable-debug --enable-ipv6 ${_args}
|
||||||
|
|
Loading…
Add table
Reference in a new issue