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 --- Makefile | 9 --------- 1 file changed, 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 22c3801d1..efc42ffc8 100644 --- a/Makefile +++ b/Makefile @@ -148,15 +148,6 @@ HOSTLD:=$(shell which $(HOSTLD) || type -p $(HOSTLD) || echo ld) HOSTLN:=$(shell which $(HOSTLN) || type -p $(HOSTLN) || echo ln) HOSTNM:=$(shell which $(HOSTNM) || type -p $(HOSTNM) || echo nm) -ifndef CFLAGS_FOR_BUILD -CFLAGS_FOR_BUILD:=-g -O2 -endif -ifndef CXXFLAGS_FOR_BUILD -CXXFLAGS_FOR_BUILD:=-g -O2 -endif -ifndef FCFLAGS_FOR_BUILD -FCFLAGS_FOR_BUILD:=-g -O2 -endif export HOSTAR HOSTAS HOSTCC HOSTCXX HOSTFC HOSTLD # bash prints the name of the directory on 'cd ' if CDPATH is -- cgit v1.2.3