1
0

020-not-leak-cflags.patch 889 B

12345678910111213141516171819
  1. --- a/src/Makefile.am
  2. +++ b/src/Makefile.am
  3. @@ -224,7 +224,6 @@ install-exec-hook: $(bin_PROGRAMS)
  4. # Extra rule for linux-2.6 kernel object
  5. if KERNEL_2_6
  6. -drv_vmmc_CFLAGS += -fno-common
  7. drv_vmmc_OBJS = "$(subst .c,.o, $(drv_vmmc_SOURCES) $(nodist_drv_vmmc_SOURCES))"
  8. drv_vmmc.ko: $(drv_vmmc_SOURCES) $(EXTRA_DIST)
  9. @@ -239,7 +238,7 @@ drv_vmmc.ko: $(drv_vmmc_SOURCES) $(EXTRA
  10. @echo "# drv_vmmc: Generated to build Linux 2.6.x kernel object" > $(PWD)/Kbuild
  11. @echo "obj-m := $(subst .ko,.o,$@)" >> $(PWD)/Kbuild
  12. @echo "$(subst .ko,,$@)-y := $(drv_vmmc_OBJS)" >> $(PWD)/Kbuild
  13. - @echo "EXTRA_CFLAGS := -DHAVE_CONFIG_H $(CFLAGS) $(drv_vmmc_CFLAGS) $(INCLUDES)" >> $(PWD)/Kbuild
  14. + @echo "EXTRA_CFLAGS := -DHAVE_CONFIG_H $(drv_vmmc_CFLAGS) $(INCLUDES)" >> $(PWD)/Kbuild
  15. $(MAKE) ARCH=@KERNEL_ARCH@ -C @KERNEL_BUILD_PATH@ O=@KERNEL_BUILD_PATH@ M=$(PWD) modules
  16. clean-generic: