Index: nss/nss/lib/freebl/Makefile
===================================================================
--- nss.orig/nss/lib/freebl/Makefile
+++ nss/nss/lib/freebl/Makefile
@@ -125,6 +125,7 @@ ifeq ($(CPU_ARCH),aarch64)
 endif
 ifeq ($(CPU_ARCH),arm)
     EXTRA_SRCS += gcm-arm32-neon.c
+ifeq ($(shell $(CC) -o - -E -dM - $(CSTD) $(CFLAGS) < /dev/null | grep __SOFTFP__ > /dev/null && echo 1),1)
     ifdef CC_IS_CLANG
         DEFINES += -DUSE_HW_AES
         EXTRA_SRCS += aes-armv8.c
@@ -140,6 +141,7 @@ ifeq ($(CPU_ARCH),arm)
         endif
     endif
 endif
+endif
 
 ifeq ($(OS_TARGET),OSF1)
     DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_NO_MP_WORD
