From patchwork Fri Apr 18 08:28:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Glisse X-Patchwork-Id: 340246 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 9037E140080 for ; Fri, 18 Apr 2014 18:28:39 +1000 (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:in-reply-to:message-id:references:mime-version :content-type; q=dns; s=default; b=gSk7WQz3Iu/o9+BkhW1AXPJJYLCQh qsIYZAjo9+qdLG/X7uKQJCNLJv89i8/bo3FZrRaqrtFFli5g2uAERqemTol5ebqC 6gDYlF3l6wzGvrN3N0k1wM7KFq4tTT/4RdX4opKJVHZD3Zzn4O1a8L7vexDOJPRn E5k8vsZ2Y4PkrQ= 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:in-reply-to:message-id:references:mime-version :content-type; s=default; bh=c2VWU/C46yLEs1yjc1idLY2wArc=; b=nZU XbJ6wK7sl2L3G1tbXwHA7OoDdVXwSWMNNgfN7NeRMjEhfHOGqLgGIYrKzjEJ6VXj h098MYijkvSVDDT5+Q5J9JN4mHBJiSoeEwfB7FSCR/5+dtq3Zu2VaoCXe/Ly0lBr EEaCPR8qU8Qa9LnvDU5ZhtLRV4pNYtpRIHbvO8RM= Received: (qmail 21580 invoked by alias); 18 Apr 2014 08:28:32 -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 21571 invoked by uid 89); 18 Apr 2014 08:28:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail2-relais-roc.national.inria.fr Received: from mail2-relais-roc.national.inria.fr (HELO mail2-relais-roc.national.inria.fr) (192.134.164.83) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Fri, 18 Apr 2014 08:28:30 +0000 Received: from stedding.saclay.inria.fr ([193.55.250.194]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA; 18 Apr 2014 10:28:27 +0200 Received: from glisse (helo=localhost) by stedding.saclay.inria.fr with local-esmtp (Exim 4.82) (envelope-from ) id 1Wb49r-0005AW-4w for gcc-patches@gcc.gnu.org; Fri, 18 Apr 2014 10:28:27 +0200 Date: Fri, 18 Apr 2014 10:28:27 +0200 (CEST) From: Marc Glisse To: gcc-patches@gcc.gnu.org Subject: Re: [build] PR 43538: Don't overwrite CXXFLAGS_FOR_TARGET in config/mt-gnu In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Ping http://gcc.gnu.org/ml/gcc-patches/2014-01/msg01480.html On Thu, 23 Jan 2014, Marc Glisse wrote: > 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 209514) +++ config/mt-gnu (working copy) @@ -1 +1 @@ -CXXFLAGS_FOR_TARGET = $(CXXFLAGS) -D_GNU_SOURCE +CXXFLAGS_FOR_TARGET += -D_GNU_SOURCE