1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

security/nss: fix build on powerpc64le

Change if condition to also catch anything after 64 (e.g. "le", as in powerpc64le). Currently ARCH needs to end with 64.

While here, disable VSX option for powerpc64le. All powerpc64le systems are VSX-compatible anyway.
This commit is contained in:
Piotr Kubaj 2020-10-13 12:40:42 +00:00
parent 8570f7be22
commit 77e0ffe440
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=552239
2 changed files with 2 additions and 3 deletions

View File

@ -47,7 +47,6 @@ INSTALL_BINS= certutil cmsutil crlutil derdump makepqg \
OPTIONS_DEFINE= DEBUG
OPTIONS_DEFINE_powerpc= VSX
OPTIONS_DEFINE_powerpc64= VSX
OPTIONS_DEFINE_powerpc64le= VSX
VSX_CFLAGS= -DUSE_PPC_CRYPTO
VSX_DESC= Use VSX optimized routines (POWER8 or newer)
@ -61,7 +60,7 @@ BINS= ${DIST}/${OPSYS}${OSREL}_OPT.OBJ
BINS= ${DIST}/${OPSYS}${OSREL}_DBG.OBJ
.endif
.if ${ARCH:Mpowerpc64*} || ${ARCH} == powerpc
.if ${ARCH} == powerpc64 || ${ARCH} == powerpc
EXTRA_PATCHES= ${FILESDIR}/${ARCH}${PPC_ABI:tl}-lib_freebl_scripts_gen.sh
USES+= compiler:c++11-lang # -mcrypto -mvsx
.if ! ${PORT_OPTIONS:MVSX}

View File

@ -24,7 +24,7 @@
+CPU_ARCH = ppc
+endif
+ifneq (,$(filter %64, $(OS_TEST)))
+ifneq (,$(findstring 64,$(OS_TEST)))
+USE_64 = 1
+endif
+