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]

(From OE-Core rev: 2898c2cf94bd690ebfc4ab5f4d220e6ea05aca82)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Aníbal Limón 2015-04-08 10:04:45 +00:00 committed by Richard Purdie
parent 7ab461cc3e
commit 21303a4ddb
1 changed files with 4 additions and 0 deletions

View File

@ -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 \