aboutsummaryrefslogtreecommitdiff
path: root/security/nss/files/patch-lib-freebl-Makefile
blob: f9e412e534f56120ca6054e1ff69d35743db618f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- lib/freebl/Makefile.orig	2021-04-15 16:17:44 UTC
+++ lib/freebl/Makefile
@@ -263,7 +263,7 @@ else ifeq ($(CPU_ARCH),x86)
 endif
 endif # Darwin
 
-ifeq ($(OS_TARGET),Linux)
+ifeq (,$(filter-out Linux FreeBSD, $(OS_TARGET)))
 ifeq ($(CPU_ARCH),x86_64)
     # Lower case s on mpi_amd64_common due to make implicit rules.
     ASFILES  = arcfour-amd64-gas.s mpi_amd64_common.s
@@ -298,10 +298,10 @@ ifdef USE_64
     PPC_ABI := $(shell $(CC) -dM -E - < /dev/null | awk '$$2 == "_CALL_ELF" {print $$3}')
     ifeq ($(PPC_ABI),2)
         ASFILES += sha512-p8.s
-    ifeq ($(OS_TEST),ppc64le)
+    ifeq ($(OS_TEST),powerpc64le)
         EXTRA_SRCS += chacha20poly1305-ppc.c
         ASFILES += chacha20-ppc64le.s
-    endif # ppc64le
+    endif # powerpc64le
     endif
 endif # USE_64
 endif # ppc