aboutsummaryrefslogtreecommitdiff
path: root/package/Makefile.in
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <jacmet@sunsite.dk>2010-10-29 21:00:26 +0200
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2010-10-29 21:00:26 +0200
commit3be496834375256f15cb98812d92f9b3d6fcb3a7 (patch)
tree6bed2ea24aa272d6f762928e5fdc41c7afe4471c /package/Makefile.in
parentdf3e367c5b6253ebb1ca2de6b97b662793bdb5f3 (diff)
downloadbuildroot-3be496834375256f15cb98812d92f9b3d6fcb3a7.tar.gz
buildroot-3be496834375256f15cb98812d92f9b3d6fcb3a7.tar.bz2
Optimize (-O2) host binaries by default
Default HOST_CFLAGS to -O2, so host tools (like the cross compiler) are built with optimization by default. Based on a patch by Will Newton <will.newton@gmail.com>. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/Makefile.in')
-rw-r--r--package/Makefile.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/Makefile.in b/package/Makefile.in
index fb09083de4..971a7edc74 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -169,6 +169,7 @@ FLEX:=$(shell which flex || type -p flex)
BISON:=$(shell which bison || type -p bison)
SED:=$(shell which sed || type -p sed) -i -e
+HOST_CFLAGS ?= -O2
HOST_CFLAGS += -I$(HOST_DIR)/include -I$(HOST_DIR)/usr/include
HOST_CXXFLAGS += -I$(HOST_DIR)/include -I$(HOST_DIR)/usr/include
HOST_LDFLAGS += -L$(HOST_DIR)/lib -L$(HOST_DIR)/usr/lib -Wl,-rpath,$(HOST_DIR)/usr/lib