aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-envtools/patches/001-honor_opt_flags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/boot/uboot-envtools/patches/001-honor_opt_flags.patch')
-rw-r--r--package/boot/uboot-envtools/patches/001-honor_opt_flags.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/boot/uboot-envtools/patches/001-honor_opt_flags.patch b/package/boot/uboot-envtools/patches/001-honor_opt_flags.patch
new file mode 100644
index 0000000000..16c3920bd6
--- /dev/null
+++ b/package/boot/uboot-envtools/patches/001-honor_opt_flags.patch
@@ -0,0 +1,12 @@
+--- a/config.mk
++++ b/config.mk
+@@ -62,7 +62,8 @@ PLATFORM_LDFLAGS =
+
+ #########################################################################
+
+-HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \
++HOSTOPTFLAGS = -O2 -fomit-frame-pointer
++HOSTCFLAGS = -Wall -Wstrict-prototypes $(HOSTOPTFLAGS) \
+ $(HOSTCPPFLAGS)
+ HOSTSTRIP = strip
+