From 3be496834375256f15cb98812d92f9b3d6fcb3a7 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Fri, 29 Oct 2010 21:00:26 +0200 Subject: 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 . Signed-off-by: Peter Korsgaard --- package/Makefile.in | 1 + 1 file changed, 1 insertion(+) (limited to 'package') diff --git a/package/Makefile.in b/package/Makefile.in index fb09083de..971a7edc7 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 -- cgit v1.2.3