From patchwork Mon Jun 1 14:37:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 479074 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 1C386140E61 for ; Tue, 2 Jun 2015 00:37:34 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=V05GrzpY; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id ADE93A36B7; Mon, 1 Jun 2015 14:37:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rYu-QhTrFqqp; Mon, 1 Jun 2015 14:37:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A819FA36F4; Mon, 1 Jun 2015 14:37:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id CCC4A1BFC03 for ; Mon, 1 Jun 2015 14:37:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C8489A36B7 for ; Mon, 1 Jun 2015 14:37:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Smee6TiYwvvs for ; Mon, 1 Jun 2015 14:37:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) by fraxinus.osuosl.org (Postfix) with ESMTPS id B3A06A36F4 for ; Mon, 1 Jun 2015 14:37:28 +0000 (UTC) Received: by labpy14 with SMTP id py14so91383356lab.0 for ; Mon, 01 Jun 2015 07:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=4PLmAAxZzrRngnTFotiSHC0V4hc3zemxPN8gC9b6I6s=; b=V05GrzpYrsokTSuT0oan8mnxfqPFn3BKX8FKZoiIf+8Qhl6W2LL9h0czK6Zy5EEIeg nLhpyghtzvjWqvPoHE2oWtQQxejR3aiEIrjeKOWJLPqU/eXBskriPUm7/DQ1stttlD/n +pgbgTdi1jpC89g55v2oXO0XzZilaRzCdpl6KM0gCYQknrJAUN7G9WllWXfPbMs0UOw0 wgUCzjZ9wgr+Ba1cTZEwD6E70AR2P4cmViVFjgiFzhqyf7jLvhB8+swnAiLDKpOikJ4X +sqyxXQnRLXm4uFxpy0SZxgvVRJJnj8VJhue5F/P4Q4+grlFFCYyA+JxpovMgzcyX+CV xhAw== X-Received: by 10.152.19.8 with SMTP id a8mr12455792lae.121.1433169446882; Mon, 01 Jun 2015 07:37:26 -0700 (PDT) Received: from octofox.metropolis ([5.19.183.212]) by mx.google.com with ESMTPSA id vs8sm4276709lbb.39.2015.06.01.07.37.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jun 2015 07:37:26 -0700 (PDT) From: Max Filippov To: buildroot@uclibc.org Date: Mon, 1 Jun 2015 17:37:07 +0300 Message-Id: <1433169427-7527-1-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 1.8.1.4 Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH] gcc/gcc-final: pass TARGET_CFLAGS flags to configure with --enable-cxx-flags X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Currently only TARGET_ABI flags are passed to the final compiler configure script and only when building for Xtensa. Since libstdc++ is a normal library it should be built with full TARGET_CFLAGS on all targets. Pass TARGET_CFLAGS flags to gcc-final configure script for all targets in the --enable-cxx-flags parameter. Suggested-by: Arnout Vandecappelle Signed-off-by: Max Filippov --- package/gcc/gcc-final/gcc-final.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package/gcc/gcc-final/gcc-final.mk b/package/gcc/gcc-final/gcc-final.mk index 8d7009b..59c8708 100644 --- a/package/gcc/gcc-final/gcc-final.mk +++ b/package/gcc/gcc-final/gcc-final.mk @@ -185,8 +185,6 @@ endef HOST_GCC_FINAL_POST_INSTALL_HOOKS += HOST_GCC_FINAL_INSTALL_USR_LIBS endif -ifeq ($(BR2_xtensa),y) -HOST_GCC_FINAL_CONF_OPTS += --enable-cxx-flags="$(TARGET_ABI)" -endif +HOST_GCC_FINAL_CONF_OPTS += --enable-cxx-flags="$(TARGET_CFLAGS)" $(eval $(host-autotools-package))