From patchwork Tue Dec 11 13:31:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 205215 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 99DE72C0082 for ; Wed, 12 Dec 2012 00:31:18 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 96F1281092; Tue, 11 Dec 2012 13:31:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id npOPsdr2RnAR; Tue, 11 Dec 2012 13:31:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 6D9BD80AE3; Tue, 11 Dec 2012 13:31:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 7F4978F74B for ; Tue, 11 Dec 2012 13:31:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1048C80AE3 for ; Tue, 11 Dec 2012 13:31:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id riSMuXw8fgxk for ; Tue, 11 Dec 2012 13:31:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [78.46.79.162]) by whitealder.osuosl.org (Postfix) with ESMTPS id B0F9380AE0 for ; Tue, 11 Dec 2012 13:31:09 +0000 (UTC) Received: from asgard (host201.201-252-64.telecom.net.ar [201.252.64.201]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.5/8.14.5) with ESMTP id qBBDV2qU015622 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Dec 2012 13:31:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1355232666; bh=+baDrojfhV6xML1D5k2OncSc6bFuW9ietCtCfsAnNC4=; h=From:To:Cc:Subject:Date; b=p0DyOP/HGvhyQ2O6IJnUdACE3S+cUbH6BsAe2bciBXWtkqDVeqYukPqFKVbsJpg9q 26PBjXROZDdb7BYZcB++l/bv4FJQ2J/l8mqmiTmYcOFfUuclpEbAKPS5o5N8dmqoLM 6O2bsWAFpoHwUTcfeGa0Hye6bz/FBXjsWdAeIc9E= Received: by asgard (sSMTP sendmail emulation); Tue, 11 Dec 2012 10:31:00 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Tue, 11 Dec 2012 10:31:00 -0300 Message-Id: <1355232660-2377-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.7.8.6 X-Virus-Scanned: clamav-milter 0.97.5 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH] libnss: fix build failures X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Such as http://autobuild.buildroot.net/results/2ca1d135269a67201e6b4d995ce8fbe94db1ed3f The mozilla build system passes all of the different ways of CFLAGS (OPTIMIZER, XCFLAGS, OS_CFLAGS) even when building host tools (nsintall). The best way around this without patching libnss is just building the host tools first without any CFLAGS and then going on with the rest. Signed-off-by: Gustavo Zacarias --- package/libnss/libnss.mk | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package/libnss/libnss.mk b/package/libnss/libnss.mk index 84fc149..96faf37 100644 --- a/package/libnss/libnss.mk +++ b/package/libnss/libnss.mk @@ -17,7 +17,6 @@ LIBNSS_BUILD_VARS = MOZILLA_CLIENT=1 \ NSPR_LIB_DIR=$(STAGING_DIR)/usr/lib \ BUILD_OPT=1 \ NS_USE_GCC=1 \ - OPTIMIZER="$(TARGET_CFLAGS)" \ NSS_USE_SYSTEM_SQLITE=1 \ NSS_ENABLE_ECC=1 \ NATIVE_CC="$(HOSTCC)" \ @@ -34,11 +33,16 @@ endif define LIBNSS_BUILD_CMDS - $(MAKE1) -C $(@D)/$(LIBNSS_SUBDIR)/nss build_coreconf build_dbm all \ + $(MAKE1) -C $(@D)/$(LIBNSS_SUBDIR)/nss build_coreconf \ SOURCE_MD_DIR=$(@D)/$(LIBNSS_DISTDIR) \ DIST=$(@D)/$(LIBNSS_DISTDIR) \ CHECKLOC= \ $(LIBNSS_BUILD_VARS) + $(MAKE1) -C $(@D)/$(LIBNSS_SUBDIR)/nss build_dbm all \ + SOURCE_MD_DIR=$(@D)/$(LIBNSS_DISTDIR) \ + DIST=$(@D)/$(LIBNSS_DISTDIR) \ + CHECKLOC= \ + $(LIBNSS_BUILD_VARS) OPTIMIZER="$(TARGET_CFLAGS)" endef define LIBNSS_INSTALL_STAGING_CMDS