From 525c6ef6561b7edd68f02004716c2a36af03076c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Thu, 26 Jun 2014 09:38:06 +0300 Subject: 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. --- main/nspr/APKBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main/nspr') diff --git a/main/nspr/APKBUILD b/main/nspr/APKBUILD index 531e902820..5a996bc7b0 100644 --- a/main/nspr/APKBUILD +++ b/main/nspr/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa 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 -- cgit v1.2.3