uboot-envtools: pass target cflags
[openwrt.git] / package / boot / uboot-envtools / patches / 001-honor_opt_flags.patch
1 --- a/config.mk
2 +++ b/config.mk
3 @@ -62,7 +62,8 @@ PLATFORM_LDFLAGS =
4  
5  #########################################################################
6  
7 -HOSTCFLAGS     = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \
8 +HOSTOPTFLAGS   = -O2 -fomit-frame-pointer
9 +HOSTCFLAGS     = -Wall -Wstrict-prototypes $(HOSTOPTFLAGS) \
10                   $(HOSTCPPFLAGS)
11  HOSTSTRIP      = strip
12