summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2016-10-21 12:21:07 +0200
committerSteven Rostedt <rostedt@goodmis.org>2017-06-07 19:03:31 -0400
commit837a0a94eb9ca5b40d281b91cf774272fa8bcbfe (patch)
tree2b638259ea497d5d850e732f9b0997438122eae0
parent5de7ce82f1a59ea195c30f0ea7392c7b9d94279c (diff)
downloadlinux-rt-837a0a94eb9ca5b40d281b91cf774272fa8bcbfe.tar.gz
kbuild: add -fno-PIE
Debian started to build the gcc with -fPIE by default so the kernel build ends before it starts properly with: |kernel/bounds.c:1:0: error: code model kernel does not support PIC mode Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 28b1d917fec3..ec0a550b24d5 100644
--- a/Makefile
+++ b/Makefile
@@ -376,7 +376,7 @@ KBUILD_CPPFLAGS := -D__KERNEL__
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common \
-Werror-implicit-function-declaration \
- -Wno-format-security \
+ -Wno-format-security -fno-PIE \
-fno-delete-null-pointer-checks \
-std=gnu89 $(call cc-option,-fno-PIE)