summaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-09-09 21:35:42 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-09-09 21:35:42 +0000
commit8726a422cd551c41a5c4a1d88ebe10f5850fd00b (patch)
treee5e5ea5e884acb7c8a624b84c60cb70dfb9bedc4 /rules.mk
parent56dbeb781e963c12fc367aae068f989049cf1102 (diff)
downloadmtk-20170518-8726a422cd551c41a5c4a1d88ebe10f5850fd00b.zip
mtk-20170518-8726a422cd551c41a5c4a1d88ebe10f5850fd00b.tar.gz
mtk-20170518-8726a422cd551c41a5c4a1d88ebe10f5850fd00b.tar.bz2
do not pass optimization flags in HOST_CPPFLAGS (#12153)
SVN-Revision: 33351
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.mk b/rules.mk
index b7bad1c..995852e 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