Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mail.openembedded.org (Postfix) with ESMTP id 40EA6601F7 for ; Mon, 30 Mar 2015 23:58:38 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 30 Mar 2015 16:58:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,497,1422950400"; d="scan'208";a="706436028" Received: from yctb03.ostc.intel.com (HELO yctb03.otcr.jf.intel.com) ([10.23.219.52]) by orsmga002.jf.intel.com with ESMTP; 30 Mar 2015 16:58:34 -0700 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= To: openembedded-core@lists.openembedded.org Date: Mon, 30 Mar 2015 23:58:18 +0000 Message-Id: <1427759898-11392-1-git-send-email-anibal.limon@linux.intel.com> X-Mailer: git-send-email 1.8.4.5 MIME-Version: 1.0 Subject: [PATCH] nss: Fix build in x32 ABI X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2015 23:58:40 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- 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 4be3557..f2a49f2 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 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 \ -- 1.8.4.5