Skip to content
Snippets Groups Projects
Commit 5d37a99a authored by Florian Fainelli's avatar Florian Fainelli
Browse files

gcc: build with HOST_CFLAGS


Turns on -O2 optimization when building GCC thus making the cross-compiler a
little faster (about 25%).

Signed-off-by: default avatarFlorian Fainelli <florian@openwrt.org>

SVN-Revision: 34266
parent cf440ae7
No related branches found
No related tags found
No related merge requests found
...@@ -180,6 +180,7 @@ endif ...@@ -180,6 +180,7 @@ endif
GCC_MAKE:= \ GCC_MAKE:= \
export SHELL="$(BASH)"; \ export SHELL="$(BASH)"; \
$(MAKE) \ $(MAKE) \
CFLAGS="$(HOST_CFLAGS)" \
CFLAGS_FOR_TARGET="$(TARGET_CFLAGS)" \ CFLAGS_FOR_TARGET="$(TARGET_CFLAGS)" \
CXXFLAGS_FOR_TARGET="$(TARGET_CFLAGS)" CXXFLAGS_FOR_TARGET="$(TARGET_CFLAGS)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment