summaryrefslogtreecommitdiff
path: root/package/busybox/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-01-28 16:22:43 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-28 16:22:43 +0100
commit0d7175e0d66f40afccbcc5de3fe9d871099d0414 (patch)
tree0cdf89ff4445dbc1b268e331bc5297d750583aaf /package/busybox/patches
parentd090ff114de6181fefdae7bbd8eceba7eaf5d97d (diff)
remove default optimization flags
Diffstat (limited to 'package/busybox/patches')
-rw-r--r--package/busybox/patches/004-remove-cflags.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/busybox/patches/004-remove-cflags.patch b/package/busybox/patches/004-remove-cflags.patch
new file mode 100644
index 000000000..e1daf3294
--- /dev/null
+++ b/package/busybox/patches/004-remove-cflags.patch
@@ -0,0 +1,22 @@
+diff -Nur busybox-1.18.1.orig/Makefile.flags busybox-1.18.1/Makefile.flags
+--- busybox-1.18.1.orig/Makefile.flags 2010-12-20 01:41:26.000000000 +0100
++++ busybox-1.18.1/Makefile.flags 2011-01-27 21:24:51.000000000 +0100
+@@ -57,18 +57,6 @@
+ # be fixed..
+ #CFLAGS += $(call cc-option,-Wconversion,)
+
+-ifneq ($(CONFIG_DEBUG),y)
+-CFLAGS += $(call cc-option,-Os,)
+-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,)
+-endif
+-endif
+-
+ # If arch/$(ARCH)/Makefile did not override it (with, say, -fPIC)...
+ ARCH_FPIC ?= -fpic
+ ARCH_FPIE ?= -fpie