nss: fix build for mips64
authorLucian Cristian <lucian.cristian@gmail.com>
Sat, 23 May 2020 02:43:01 +0000 (05:43 +0300)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Fri, 21 Aug 2020 14:04:57 +0000 (16:04 +0200)
disable arm32_neon on unsupported target

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
(cherry picked from commit d254f0527deb23e75f5100fd2159cf27b92dc966)

libs/nss/Makefile
libs/nss/patches/003-openwrt_fix.patch

index 962b8b7b16615a6e8749c37e1f016a0ea7da401c..aea986c7987785594e73106c57743330bcaaf8b4 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nss
 PKG_VERSION:=3.52
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:= \
@@ -62,8 +62,15 @@ ifeq ($(CONFIG_CPU_TYPE),"xscale")
 TARGET_CFLAGS+= -mfloat-abi=softfp
 endif
 
+ifneq ($(findstring arm,$(CONFIG_ARCH)),)
+ifeq ($(findstring neon,$(CONFIG_CPU_TYPE)),)
+export NSS_DISABLE_ARM32_NEON
+endif
+endif
+
 export NATIVE_CC=$(HOSTCC)
 export NATIVE_FLAGS=$(HOST_CFLAGS)
+export NSS_ENABLE_WERROR=0
 
 MAKE_FLAGS += \
        CROSS_COMPILE=1 \
index e3eb2ceddd27ae054663d06bc6106969791ce73c..9f75850ff9b62b293e19fb54bf631ff9af130afe 100644 (file)
@@ -22,7 +22,7 @@
  
 --- a/nss/coreconf/arch.mk     2019-03-31 23:38:34.374931416 +0300
 +++ b/nss/coreconf/arch.mk     2019-03-31 23:38:44.667236102 +0300
-@@ -305,7 +305,7 @@
+@@ -334,7 +334,7 @@
      OBJDIR_NAME_COMPILER = $(COMPILER_TAG)
  endif
  OBJDIR_NAME_BASE = $(OS_TARGET)$(OS_RELEASE)$(CPU_TAG)$(OBJDIR_NAME_COMPILER)$(LIBC_TAG)$(IMPL_STRATEGY)$(OBJDIR_TAG)