]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/x86/Makefile
x86, build: Globally set -fno-pic
[karo-tx-linux.git] / arch / x86 / Makefile
index b0c5276861ec8cc3b5713b6f83335746f812edde..682e9c210baacb99b86817adbd45ebbd17a30955 100644 (file)
@@ -27,6 +27,10 @@ ifeq ($(CONFIG_X86_32),y)
 
         KBUILD_CFLAGS += -msoft-float -mregparm=3 -freg-struct-return
 
+        # Never want PIC in a 32-bit kernel, prevent breakage with GCC built
+        # with nonstandard options
+        KBUILD_CFLAGS += -fno-pic
+
         # prevent gcc from keeping the stack 16 byte aligned
         KBUILD_CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2)