]> git.hungrycats.org Git - linux/commitdiff
zygo: fix GCC6 build failure based on advice at https://lists.ubuntu.com/archives...
authorZygo Blaxell <zblaxell@thirteen.furryterror.org>
Tue, 27 Jun 2017 23:26:03 +0000 (19:26 -0400)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Tue, 27 Jun 2017 23:26:03 +0000 (19:26 -0400)
Makefile

index 90e4bd904d363fb5f5558b12bc6271e5acf24c68..faef9753845e251e49750eab1dd8057d56e47818 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -604,6 +604,12 @@ endif # $(dot-config)
 # Defaults to vmlinux, but the arch makefile usually adds further targets
 all: vmlinux
 
+# force no-pie for distro compilers that enable pie by default
+KBUILD_CFLAGS += $(call cc-option, -fno-pie)
+KBUILD_CFLAGS += $(call cc-option, -no-pie)
+KBUILD_AFLAGS += $(call cc-option, -fno-pie)
+KBUILD_CPPFLAGS += $(call cc-option, -fno-pie)
+
 # The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default
 # values of the respective KBUILD_* variables
 ARCH_CPPFLAGS :=