[oe-commits] =?UTF-8?Q?An=C3=ADbal=20Lim=C3=B3n=20?=: nss: Fix build in x32 ABI

git at git.openembedded.org git at git.openembedded.org
Thu Apr 9 10:29:13 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 397bb4643590f923dd5e39b15b7e61fa25943347
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=397bb4643590f923dd5e39b15b7e61fa25943347

Author: Aníbal Limón <anibal.limon at linux.intel.com>
Date:   Wed Apr  8 10:04:45 2015 +0000

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]

Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-support/nss/nss.inc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-support/nss/nss.inc b/meta/recipes-support/nss/nss.inc
index 4082930..665e4e6 100644
--- a/meta/recipes-support/nss/nss.inc
+++ b/meta/recipes-support/nss/nss.inc
@@ -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
 
     # We can modify CC in the environment, but if we set it via an
@@ -115,6 +117,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 \



More information about the Openembedded-commits mailing list