From patchwork Thu Jan 23 11:07:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Glisse X-Patchwork-Id: 313515 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E2EAC2C0082 for ; Thu, 23 Jan 2014 22:07:43 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=NE1ZEw4BGvTminvtCX9Yu802lsknYTzwN/W5C3UPuwVCOM0VEDmh+ N3APThLnvSZ08ndEhLXcvojneDbOgUiGDk8+lA0ZGAMQD7m+kUWeA9OBctsPJ8lF olwO3o5c9shOYWcz2Q1fda0PzQy4++w2SeaRxzpiuoWEPm1lBR7FVk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=veCDotuLBnI0QmG2JDm0wp0BU8o=; b=ABcGYQujjjRhrnvhSZec lMG6g+9gFNrEeUt/cbOPQbhyI5IRT7EV+xjH4Znicky0r0EHxa6y1Zg9QpTtKcSt JBqbrBkt+KJrPzzEvtyqEqHqQ7ynyVEdxyHS8WOi4CdyQv1iAZuevZes9fKr8boy f9l6sA5FtrM4/c0evxH3Sw8= Received: (qmail 26184 invoked by alias); 23 Jan 2014 11:07:36 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 26168 invoked by uid 89); 23 Jan 2014 11:07:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail3-relais-sop.national.inria.fr Received: from mail3-relais-sop.national.inria.fr (HELO mail3-relais-sop.national.inria.fr) (192.134.164.104) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Thu, 23 Jan 2014 11:07:32 +0000 Received: from stedding.saclay.inria.fr ([193.55.250.194]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 23 Jan 2014 12:07:29 +0100 Received: from glisse (helo=localhost) by stedding.saclay.inria.fr with local-esmtp (Exim 4.82) (envelope-from ) id 1W6I88-0005AL-SI for gcc-patches@gcc.gnu.org; Thu, 23 Jan 2014 12:07:28 +0100 Date: Thu, 23 Jan 2014 12:07:28 +0100 (CET) From: Marc Glisse To: gcc-patches@gcc.gnu.org Subject: [build] PR 43538: Don't overwrite CXXFLAGS_FOR_TARGET in config/mt-gnu Message-ID: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Hello, although setting CFLAGS_FOR_TARGET before compiling gcc works fine, CXXFLAGS_FOR_TARGET is ignored. I don't see any good reason for that. I tested the patch by doing a regular bootstrap+testsuite on x86_64-unknown-linux-gnu. I also did a non-bootstrap build where I set CXXFLAGS_FOR_TARGET and checked that it now propagates to libstdc++ and others. config/ChangeLog: 2014-01-23 Marc Glisse PR target/43538 * mt-gnu: Don't reset CXXFLAGS_FOR_TARGET. Index: config/mt-gnu =================================================================== --- config/mt-gnu (revision 206958) +++ config/mt-gnu (working copy) @@ -1 +1 @@ -CXXFLAGS_FOR_TARGET = $(CXXFLAGS) -D_GNU_SOURCE +CXXFLAGS_FOR_TARGET += -D_GNU_SOURCE