From: John Crispin Date: Mon, 20 Oct 2014 06:29:21 +0000 (+0000) Subject: build: add $(STAGING_DIR_HOST)/usr/{include, lib} to build search path. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=7557afa9a5810183ef85247dca97a3530abe0548;p=openwrt%2Fstaging%2Fneocturne.git build: add $(STAGING_DIR_HOST)/usr/{include, lib} to build search path. Signed-off-by: Yousong Zhou SVN-Revision: 42987 --- 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