package/libnss: fix aarch64_be build
authorBernd Kuhls <bernd.kuhls@t-online.de>
Fri, 27 Jul 2018 23:30:00 +0000 (01:30 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 28 Jul 2018 14:16:28 +0000 (16:16 +0200)
libnss does not treat aarch64_be the same way as aarch64:
https://hg.mozilla.org/projects/nss/file/fb3585458ac3/lib/freebl/Makefile#l523

Add code to translate "aarch64_be" into "aarch64" to fix
http://autobuild.buildroot.net/results/4fca771980f9b049ce2690971ddd856652cd5b43/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libnss/libnss.mk

index 03f575014d8aa906eab90c9ab55f31a3b19a78cc..0693f71ee6045e3d3df8de361054f5d16846b9ce 100644 (file)
@@ -23,6 +23,12 @@ endef
 LIBNSS_PRE_CONFIGURE_HOOKS += LIBNSS_DROP_GC_SECTIONS
 endif
 
+ifeq ($(BR2_aarch64_be),y)
+LIBNSS_ARCH = aarch64
+else
+LIBNSS_ARCH = $(ARCH)
+endif
+
 LIBNSS_BUILD_VARS = \
        MOZILLA_CLIENT=1 \
        NSPR_INCLUDE_DIR=$(STAGING_DIR)/usr/include/nspr \
@@ -35,7 +41,7 @@ LIBNSS_BUILD_VARS = \
        NATIVE_CC="$(HOSTCC)" \
        OS_ARCH="Linux" \
        OS_RELEASE="2.6" \
-       OS_TEST="$(ARCH)"
+       OS_TEST="$(LIBNSS_ARCH)"
 
 # #pragma usage needs gcc >= 4.8
 # See https://bugzilla.mozilla.org/show_bug.cgi?id=1226179