]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - Makefile
UBUNTU: SAUCE: (no-up) disable -pie when gcc has it enabled by default
[mirror_ubuntu-artful-kernel.git] / Makefile
index b90d9f39677927fa42da3e477009731d6e9f7dd8..ee9239eccbd19902509d15a8c4abc8e1b3ea415e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -631,6 +631,12 @@ endif
 # 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 :=