summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2015-04-08 10:04:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-09 19:48:00 +0100
commit2898c2cf94bd690ebfc4ab5f4d220e6ea05aca82 (patch)
tree319a3cb38907ed290434db21f610cfd798e92e6b /meta
parent7b75430c2e3ffedb9ef4198fabf259b757b9ce5a (diff)
downloadopenembedded-core-2898c2cf94bd690ebfc4ab5f4d220e6ea05aca82.tar.gz
openembedded-core-2898c2cf94bd690ebfc4ab5f4d220e6ea05aca82.tar.bz2
openembedded-core-2898c2cf94bd690ebfc4ab5f4d220e6ea05aca82.zip
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@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-support/nss/nss.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-support/nss/nss.inc b/meta/recipes-support/nss/nss.inc
index 4082930ace..665e4e6a09 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 \