summaryrefslogtreecommitdiff
path: root/package/busybox/patches/003-disable-cflags.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-05-23 21:39:13 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-23 21:39:13 +0200
commitb08f20692aaa5002fcd1f6a4a8e9f856e445208f (patch)
tree750e765d1feb5b4ad07d94f134f0a150699bf386 /package/busybox/patches/003-disable-cflags.patch
parent82ae0cb11d56c46dd1aa14de98f94106f9dcddbc (diff)
update to latest upstream, cleanup makefile
Diffstat (limited to 'package/busybox/patches/003-disable-cflags.patch')
-rw-r--r--package/busybox/patches/003-disable-cflags.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/busybox/patches/003-disable-cflags.patch b/package/busybox/patches/003-disable-cflags.patch
new file mode 100644
index 000000000..83417d119
--- /dev/null
+++ b/package/busybox/patches/003-disable-cflags.patch
@@ -0,0 +1,22 @@
+diff -Nur busybox-1.22.1.orig/Makefile.flags busybox-1.22.1/Makefile.flags
+--- busybox-1.22.1.orig/Makefile.flags 2014-01-09 19:15:44.000000000 +0100
++++ busybox-1.22.1/Makefile.flags 2014-05-23 21:31:04.000000000 +0200
+@@ -61,18 +61,6 @@
+ # be fixed..
+ #CFLAGS += $(call cc-option,-Wconversion,)
+
+-ifneq ($(CONFIG_DEBUG),y)
+-CFLAGS += $(call cc-option,-Os,$(call cc-option,-O2,))
+-else
+-CFLAGS += $(call cc-option,-g,)
+-#CFLAGS += "-D_FORTIFY_SOURCE=2"
+-ifeq ($(CONFIG_DEBUG_PESSIMIZE),y)
+-CFLAGS += $(call cc-option,-O0,)
+-else
+-CFLAGS += $(call cc-option,-Os,$(call cc-option,-O2,))
+-endif
+-endif
+-
+ # If arch/$(ARCH)/Makefile did not override it (with, say, -fPIC)...
+ ARCH_FPIC ?= -fpic
+ ARCH_FPIE ?= -fpie