openwrt-owl/package/boot/uboot-envtools/patches/001-honor_opt_flags.patch

13 lines
356 B
Diff

--- 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