Skip to contentSkip to conversation

Fix for arch/x86_64/pci/Makefile CFLAGS

PATCH New Corey Minyard 1 participant 1 message Oct 3, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix for arch/x86_64/pci/Makefile CFLAGS

The arch/x86_64/pci directory was giving problems in a wierd cross-compile environment. The exact cause is unknown, but the Makefile used CFLAGS instead of EXTRA_CFLAGS. From what I can tell from Documentation/kbuild/makefiles.txt, CFLAGS should not be used for this, it should be EXTRA_CFLAGS. And it solves the cross-compile problem.

arch/x86_64/pci/Makefile +1 -1
Index: linux-2.6.18/arch/x86_64/pci/Makefile
===================================================================
@@ -3,7 +3,7 @@
 #
 # Reuse the i386 PCI subsystem
 #
-CFLAGS += -Iarch/i386/pci
+EXTRA_CFLAGS += -Iarch/i386/pci
 
 obj-y		:= i386.o
 obj-$(CONFIG_PCI_DIRECT)+= direct.o