diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2019-02-22 23:45:59 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-02-22 23:45:59 +0000 |
commit | 27afb80e661ba54a9c71dcb3f52ebe8d46504cc2 (patch) | |
tree | f201fc18e729af1952f0d214e16d14fed5025368 /8.3.0/gentoo/18_all_respect-build-cxxflags.patch | |
parent | 7.4.0: lto: fix target-specific option leak into global constructors (diff) | |
download | gcc-patches-27afb80e661ba54a9c71dcb3f52ebe8d46504cc2.tar.gz gcc-patches-27afb80e661ba54a9c71dcb3f52ebe8d46504cc2.tar.bz2 gcc-patches-27afb80e661ba54a9c71dcb3f52ebe8d46504cc2.zip |
8.3.0: cut patchset 1.0
It's a verbatim copy of 8.2.0 patchset with upstreamed patches removed.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to '8.3.0/gentoo/18_all_respect-build-cxxflags.patch')
-rw-r--r-- | 8.3.0/gentoo/18_all_respect-build-cxxflags.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/8.3.0/gentoo/18_all_respect-build-cxxflags.patch b/8.3.0/gentoo/18_all_respect-build-cxxflags.patch new file mode 100644 index 0000000..14139ea --- /dev/null +++ b/8.3.0/gentoo/18_all_respect-build-cxxflags.patch @@ -0,0 +1,39 @@ +Pass CXXFLAGS as CXXFLAGS_FOR_BUILD to stage1. + +Fixes build failure when CXXFLAGS contains +TARGET-specific flags. + +Tested on x86_64-pc-linux-gnu host as: + # CFLAGS='-O2 -mfpu=neon-vfpv4' CXXFLAGS='-O2 -mfpu=neon-vfpv4' \ + armv7a-unknown-linux-gnueabihf-emerge -v1 sys-devel/gcc --quiet-build=n + +Fix by Peter Levine. +https://bugs.gentoo.org/581406 +--- a/Makefile.in ++++ b/Makefile.in +@@ -170,6 +170,7 @@ + # built for the build system to override those in BASE_FLAGS_TO_PASS. + EXTRA_BUILD_FLAGS = \ + CFLAGS="$(CFLAGS_FOR_BUILD)" \ ++ CXXFLAGS="$(CXXFLAGS_FOR_BUILD)" \ + LDFLAGS="$(LDFLAGS_FOR_BUILD)" + + # This is the list of directories to built for the host system. +@@ -710,6 +711,7 @@ + "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ + "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ + "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ ++ "CXXFLAGS_FOR_BUILD=$(CXXFLAGS_FOR_BUILD)" \ + "EXPECT=$(EXPECT)" \ + "FLEX=$(FLEX)" \ + "INSTALL=$(INSTALL)" \ +--- a/Makefile.tpl ++++ b/Makefile.tpl +@@ -172,6 +172,7 @@ + # built for the build system to override those in BASE_FLAGS_TO_PASS. + EXTRA_BUILD_FLAGS = \ + CFLAGS="$(CFLAGS_FOR_BUILD)" \ ++ CXXFLAGS="$(CXXFLAGS_FOR_BUILD)" \ + LDFLAGS="$(LDFLAGS_FOR_BUILD)" + + # This is the list of directories to built for the host system. |