nss: fix build on ppc64 targets

[ci skip]
This commit is contained in:
q66 2018-12-13 19:56:15 +01:00 committed by Helmut Pozimski
parent 81ccdf7090
commit 3f11b276d3

View file

@ -27,7 +27,7 @@ do_build() {
export FREEBL_NO_DEPEND=1 export FREEBL_NO_DEPEND=1
case "$XBPS_MACHINE" in case "$XBPS_MACHINE" in
aarch64*|x86_64*) _native_use64="USE_64=1";; aarch64*|x86_64*|ppc64*) _native_use64="USE_64=1";;
esac esac
cd nss cd nss
@ -38,6 +38,7 @@ do_build() {
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
aarch64*) _ARCH="aarch64"; _target_use64="USE_64=1"; CFLAGS+=" -DNS_PTR_GT_32";; aarch64*) _ARCH="aarch64"; _target_use64="USE_64=1"; CFLAGS+=" -DNS_PTR_GT_32";;
ppc64*) _ARCH="ppc64"; _target_use64="USE_64=1"; CFLAGS+=" -DNS_PTR_GT_32";;
arm*) _ARCH="arm";; arm*) _ARCH="arm";;
mips*) _ARCH="mips";; mips*) _ARCH="mips";;
*) msg_error "$pkgver: unknown target machine\n";; *) msg_error "$pkgver: unknown target machine\n";;