aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bernd Kuhls <bernd.kuhls@t-online.de>2018-07-28 01:30:00 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-11-25 23:42:52 +0100
commit0c70a9fd4248a038e67229c028a1abdd7422c532 (patch)
tree21a6b5b965397092aa7d0d5d5d01196cf526d5bf
parent258a8399762a3444c9ebd7cad2deb7737f7a4297 (diff)
downloadbuildroot-0c70a9fd4248a038e67229c028a1abdd7422c532.tar.gz
buildroot-0c70a9fd4248a038e67229c028a1abdd7422c532.tar.bz2
package/libnss: fix aarch64_be build
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> (cherry picked from commit 826981d45ddbb85a92c01869cb2eccc2fb260475) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/libnss/libnss.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/libnss/libnss.mk b/package/libnss/libnss.mk
index 0fc55785a8..52a17d3b72 100644
--- a/package/libnss/libnss.mk
+++ b/package/libnss/libnss.mk
@@ -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