nss: unbreak musl build.

This commit is contained in:
Juan RP 2015-05-11 10:38:02 +02:00
parent e0b248f50f
commit f3372b2204
1 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'nss' # Template file for 'nss'
pkgname=nss pkgname=nss
version=3.18.1 version=3.18.1
revision=1 revision=2
hostmakedepends="perl" hostmakedepends="perl"
makedepends="zlib-devel nspr-devel sqlite-devel" makedepends="zlib-devel nspr-devel sqlite-devel"
depends="nspr>=4.10.7" depends="nspr>=4.10.7"
@ -21,9 +21,12 @@ do_build() {
export NSS_USE_SYSTEM_SQLITE=1 export NSS_USE_SYSTEM_SQLITE=1
export NSS_ENABLE_ECC=1 export NSS_ENABLE_ECC=1
if [ "$XBPS_MACHINE" = "x86_64" ]; then case "$XBPS_TARGET_MACHINE" in
_use64="USE_64=1" aarch64*|x86_64*) _use64="USE_64=1";;
fi esac
case "$XBPS_TARGET_MACHINE" in
*-musl) CFLAGS+=" -UHAVE_SYS_CDEFS_H";;
esac
cd nss cd nss
# Build nsinstall for host. # Build nsinstall for host.