aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-10-20 06:29:21 +0000
committerJohn Crispin <john@openwrt.org>2014-10-20 06:29:21 +0000
commit7557afa9a5810183ef85247dca97a3530abe0548 (patch)
tree7d83e37bee6220ca0c4a67b34037266774784885 /rules.mk
parent7322fe161a5c241628830bea9a5043fd08e0bd65 (diff)
downloadupstream-7557afa9a5810183ef85247dca97a3530abe0548.tar.gz
upstream-7557afa9a5810183ef85247dca97a3530abe0548.tar.bz2
upstream-7557afa9a5810183ef85247dca97a3530abe0548.zip
build: add $(STAGING_DIR_HOST)/usr/{include, lib} to build search path.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> SVN-Revision: 42987
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.mk b/rules.mk
index c9efb9e8c9..f44e8edef4 100644
--- a/rules.mk
+++ b/rules.mk
@@ -187,9 +187,9 @@ export PKG_CONFIG
HOSTCC:=gcc
HOSTCXX:=g++
-HOST_CPPFLAGS:=-I$(STAGING_DIR_HOST)/include
+HOST_CPPFLAGS:=-I$(STAGING_DIR_HOST)/include -I$(STAGING_DIR_HOST)/usr/include
HOST_CFLAGS:=-O2 $(HOST_CPPFLAGS)
-HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib
+HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib -L$(STAGING_DIR_HOST)/usr/lib
TARGET_CC:=$(TARGET_CROSS)gcc
TARGET_AR:=$(TARGET_CROSS)ar