[Buildroot] [git commit] package/libnss: fix build on powerpc

Arnout Vandecappelle (Essensium/Mind) arnout at mind.be
Thu Apr 14 19:38:53 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=f3c9d992cf73acafca96c6186428be3593457dde
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Set NSS_DISABLE_CRYPTO_VSX which is available since version 3.64 and
https://github.com/nss-dev/nss/commit/9dab43371d4d924419523e18ba84f02804880533
to avoid the following build failure on powerpc:

cc1: warning: '-mvsx' requires hardware floating point
cc1: error: '-mno-vsx' turns off '-mcrypto'

Passing this option on non-powerpc is harmless.

Fixes:
 - http://autobuild.buildroot.org/results/6bedb5b658f6c9c16c26c73a524a995e5e84fcc8

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Joel Stanley <joel at jms.id.au>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
 package/libnss/libnss.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/libnss/libnss.mk b/package/libnss/libnss.mk
index 57df104d6c..7568ec67ed 100644
--- a/package/libnss/libnss.mk
+++ b/package/libnss/libnss.mk
@@ -64,6 +64,11 @@ ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),)
 LIBNSS_BUILD_VARS += NSS_DISABLE_ALTIVEC=1
 endif
 
+ifeq ($(BR2_POWERPC_CPU_HAS_VSX),)
+# Disable VSX if not supported
+LIBNSS_BUILD_VARS += NSS_DISABLE_CRYPTO_VSX=1
+endif
+
 ifeq ($(BR2_ARM_CPU_HAS_NEON),)
 # Disable arm32-neon if neon is not supported
 LIBNSS_BUILD_VARS += NSS_DISABLE_ARM32_NEON=1



More information about the buildroot mailing list