diff options
Diffstat (limited to '6.4.0/gentoo/54_all_nopie-all-flags.patch')
-rw-r--r-- | 6.4.0/gentoo/54_all_nopie-all-flags.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/6.4.0/gentoo/54_all_nopie-all-flags.patch b/6.4.0/gentoo/54_all_nopie-all-flags.patch new file mode 100644 index 0000000..48536e6 --- /dev/null +++ b/6.4.0/gentoo/54_all_nopie-all-flags.patch @@ -0,0 +1,18 @@ +We need to pass NO_PIE_CFLAGS to ALL_* so gcc don't fail when +we compile it with older gcc and pie. + +--- a/gcc/Makefile.in 2015-06-25 19:18:12.000000000 +0200 ++++ b/gcc/Makefile.in 2016-04-22 00:12:54.029178860 +0200 +@@ -991,10 +991,10 @@ ALL_CXXFLAGS = $(T_CFLAGS) $(CFLAGS-$@) + ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS) + + # This is the variable to use when using $(COMPILER). +-ALL_COMPILERFLAGS = $(ALL_CXXFLAGS) ++ALL_COMPILERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS) + + # This is the variable to use when using $(LINKER). +-ALL_LINKERFLAGS = $(ALL_CXXFLAGS) ++ALL_LINKERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS) + + # Build and host support libraries. + |