003-disable-cflags.patch 713 B

12345678910111213141516171819202122
  1. diff -Nur busybox-1.22.1.orig/Makefile.flags busybox-1.22.1/Makefile.flags
  2. --- busybox-1.22.1.orig/Makefile.flags 2014-01-09 19:15:44.000000000 +0100
  3. +++ busybox-1.22.1/Makefile.flags 2014-05-23 21:31:04.000000000 +0200
  4. @@ -61,18 +61,6 @@
  5. # be fixed..
  6. #CFLAGS += $(call cc-option,-Wconversion,)
  7. -ifneq ($(CONFIG_DEBUG),y)
  8. -CFLAGS += $(call cc-option,-Os,$(call cc-option,-O2,))
  9. -else
  10. -CFLAGS += $(call cc-option,-g,)
  11. -#CFLAGS += "-D_FORTIFY_SOURCE=2"
  12. -ifeq ($(CONFIG_DEBUG_PESSIMIZE),y)
  13. -CFLAGS += $(call cc-option,-O0,)
  14. -else
  15. -CFLAGS += $(call cc-option,-Os,$(call cc-option,-O2,))
  16. -endif
  17. -endif
  18. -
  19. # If arch/$(ARCH)/Makefile did not override it (with, say, -fPIC)...
  20. ARCH_FPIC ?= -fpic
  21. ARCH_FPIE ?= -fpie