From 8726a422cd551c41a5c4a1d88ebe10f5850fd00b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 9 Sep 2012 21:35:42 +0000 Subject: [PATCH] do not pass optimization flags in HOST_CPPFLAGS (#12153) SVN-Revision: 33351 --- include/host-build.mk | 2 +- rules.mk | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/host-build.mk b/include/host-build.mk index 40af5c87ccfa..c4fcf94f176e 100644 --- a/include/host-build.mk +++ b/include/host-build.mk @@ -47,7 +47,7 @@ endef HOST_CONFIGURE_VARS = \ CC="$(HOSTCC)" \ CFLAGS="$(HOST_CFLAGS)" \ - CPPFLAGS="$(HOST_CFLAGS)" \ + CPPFLAGS="$(HOST_CPPFLAGS)" \ LDFLAGS="$(HOST_LDFLAGS)" \ SHELL="$(BASH)" diff --git a/rules.mk b/rules.mk index b7bad1ca5448..995852e09bdb 100644 --- a/rules.mk +++ b/rules.mk @@ -173,7 +173,8 @@ PKG_CONFIG:=$(STAGING_DIR_HOST)/bin/pkg-config export PKG_CONFIG HOSTCC:=gcc -HOST_CFLAGS:=-O2 -I$(STAGING_DIR_HOST)/include +HOST_CPPFLAGS:=-I$(STAGING_DIR_HOST)/include +HOST_CFLAGS:=-O2 $(HOST_CPPFLAGS) HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib TARGET_CC:=$(TARGET_CROSS)gcc -- 2.30.2