blob: 73ab9502dc1d72548bb448eb7733a6fad95972e4 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001Need to pass NO_PIE_CFLAGS to ALL_* so gcc doesn't fail when
2we compile it with older gcc and pie.
3
4Upstream-Status: Inappropriate [configuration]
5
6Maintained by: Gentoo Toolchain Project <toolchain@gentoo.org>
7Signed-off-by: Stephen Arnold <stephen.arnold42@gmail.com>
8
9--- a/gcc/Makefile.in 2015-06-25 19:18:12.000000000 +0200
10+++ b/gcc/Makefile.in 2016-04-22 00:12:54.029178860 +0200
11@@ -991,10 +991,10 @@ ALL_CXXFLAGS = $(T_CFLAGS) $(CFLAGS-$@)
12 ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS)
13
14 # This is the variable to use when using $(COMPILER).
15-ALL_COMPILERFLAGS = $(ALL_CXXFLAGS)
16+ALL_COMPILERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS)
17
18 # This is the variable to use when using $(LINKER).
19-ALL_LINKERFLAGS = $(ALL_CXXFLAGS)
20+ALL_LINKERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS)
21
22 # Build and host support libraries.