Skip to contentSkip to conversation

nss: Fix build in x32 ABI

PATCH New Aníbal Limón 1 participant 1 message Mar 30, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nss: Fix build in x32 ABI

When try to build nss with x32 ABI enabled fails because it need to be specified USE_X32 env var.

[YOCTO #7420]

---
 meta/recipes-support/nss/nss.inc | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-support/nss/nss.inc +4 -0
index 4be3557..f2a49f2 100644
@@ -72,6 +72,8 @@ do_compile() {
 
     if [ "${SITEINFO_BITS}" = "64" ]; then
         export USE_64=1
+    elif [ "${TARGET_ARCH}" = "x86_64" -a "${SITEINFO_BITS}" = "32" ]; then
+        export USE_X32=1
     fi
 
     make -C ./nss CCC="${CXX}" \
@@ -111,6 +113,8 @@ do_install() {
     fi
     if [ "${SITEINFO_BITS}" = "64" ]; then
         export USE_64=1
+    elif [ "${TARGET_ARCH}" = "x86_64" -a "${SITEINFO_BITS}" = "32" ]; then
+        export USE_X32=1
     fi
 
     make -C ./nss \
Signature · 1 line
1.8.4.5