]> Pileus Git - ~andy/linux/blobdiff - arch/x86/Makefile
x86/Kconfig: Turn off CONFIG_BLK_DEV_RAM
[~andy/linux] / 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)