From c4a1f92a4ccfdb6f8f4eb821dbbeea9a918bbe86 Mon Sep 17 00:00:00 2001 From: Steve Arnold Date: Mon, 13 Feb 2017 15:19:12 -0800 Subject: [PATCH] gcc-6: Add fix for missing no-PIE flags Fixes build on hardened PAX host with gcc-5 (linker error on relocs). Completes no-PIE config by adding to ALL_* flags variables. Borrowed from Gentoo gcc patches, tested on 2 hardened amd64 hosts. Upstream-Status: Inappropriate [configuration patching artifact] Commited by: Gentoo Toolchain Project Signed-off-by: Stephen Arnold --- gcc/Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 13d0d1ba0017f..035bd30a42bf5 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1005,10 +1005,10 @@ ALL_CXXFLAGS = $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS) $(INTERNAL_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.