009-extra-flags.patch 612 B

12345678910111213141516
  1. diff -Nur busybox-1.20.2.orig/Makefile busybox-1.20.2/Makefile
  2. --- busybox-1.20.2.orig/Makefile 2012-07-02 16:20:27.000000000 +0200
  3. +++ busybox-1.20.2/Makefile 2013-08-12 13:36:00.000000000 +0200
  4. @@ -318,10 +318,9 @@
  5. CFLAGS := $(CFLAGS)
  6. # Added only to final link stage of busybox binary
  7. CFLAGS_busybox := $(CFLAGS_busybox)
  8. -CPPFLAGS := $(CPPFLAGS)
  9. +CPPFLAGS := $(CPPFLAGS) $(EXTRA_CPPFLAGS)
  10. AFLAGS := $(AFLAGS)
  11. -LDFLAGS := $(LDFLAGS)
  12. -LDLIBS :=
  13. +LDFLAGS := $(LDFLAGS) $(EXTRA_LDFLAGS)
  14. # Read KERNELRELEASE from .kernelrelease (if it exists)
  15. KERNELRELEASE = $(shell cat .kernelrelease 2> /dev/null)