diff mbox

[build] PR 43538: Don't overwrite CXXFLAGS_FOR_TARGET in config/mt-gnu

Message ID alpine.DEB.2.02.1401231156220.19713@stedding.saclay.inria.fr
State New
Headers show

Commit Message

Marc Glisse Jan. 23, 2014, 11:07 a.m. UTC
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  <marc.glisse@inria.fr>

 	PR target/43538
 	* mt-gnu: Don't reset CXXFLAGS_FOR_TARGET.
diff mbox

Patch

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