Commit 525c6ef6 authored by Timo Teräs's avatar Timo Teräs

main/nspr: fix musl build to have ipv6 and large-file support

the header file tests these features using __GLIBC__ version,
supply musl feature list by hand for now.
parent a8553b29
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=nspr
pkgver=4.10.6
pkgrel=0
pkgrel=1
pkgdesc="Netscape Portable Runtime"
url="http://www.mozilla.org/projects/nspr/"
arch="all"
......@@ -33,12 +33,16 @@ build() {
conf="--enable-64bit"
fi
cd "$_builddir"/build
# ./nspr/pr/include/md/_linux.h tests only __GLIBC__ version
# to detect c-library features, list musl features here for now.
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" \
../nspr/configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--disable-debug \
--enable-optimize \
--enable-ipv6 \
$conf \
|| return 1
make CC="${CC:-gcc}" CXX="${CXX:-g++}" || return 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment