summaryrefslogtreecommitdiff
path: root/lib/freebl/Makefile
diff options
context:
space:
mode:
authorLauri Kasanen <cand@gmx.com>2020-11-19 12:11:45 -0800
committerLauri Kasanen <cand@gmx.com>2020-11-19 12:11:45 -0800
commit96b5f4e4efd48eddc0ec2304b03cf5eeb7b092fa (patch)
treef14400abd88fad0d5749ba18f572238d25b99b37 /lib/freebl/Makefile
parent6324d9405f524e7efb78eb2d71afbdd45c53ec84 (diff)
downloadnss-hg-96b5f4e4efd48eddc0ec2304b03cf5eeb7b092fa.tar.gz
Bug 1642174 - Resolve sha512-p8.o: ABI version 2 is not compatible with ABI version 1 output. r=jcj
Don't try to build the SHA-2 accelerated asm on old-ABI ppc. Currently make only, I don't have enough gyp-fu to do that side. However, the reporters of 1642174 and 1635625 both used make, not gyp. Signed-off-by: Lauri Kasanen <cand@gmx.com>
Diffstat (limited to 'lib/freebl/Makefile')
-rw-r--r--lib/freebl/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/freebl/Makefile b/lib/freebl/Makefile
index 2851474b9..269e34c5c 100644
--- a/lib/freebl/Makefile
+++ b/lib/freebl/Makefile
@@ -293,9 +293,12 @@ ifeq ($(CPU_ARCH),arm)
endif
ifeq ($(CPU_ARCH),ppc)
EXTRA_SRCS += gcm-ppc.c
- ASFILES += sha512-p8.s
ifdef USE_64
DEFINES += -DNSS_NO_INIT_SUPPORT
+ PPC_ABI := $(shell $(CC) -dM -E - < /dev/null | awk '$$2 == "_CALL_ELF" {print $$3}')
+ ifeq ($(PPC_ABI),2)
+ ASFILES += sha512-p8.s
+ endif
endif # USE_64
endif # ppc
endif # Linux