aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-20 19:12:13 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-20 19:12:13 +0000
commit03bc8d94f0d0579cf6de35d719b96f6b3df3345d (patch)
tree714143b03ea9093bcab76520b61271d2071f63b1 /rules.mk
parent36502c5a6f406da55b497bafc9f0136ffcb8e5c7 (diff)
downloadupstream-03bc8d94f0d0579cf6de35d719b96f6b3df3345d.tar.gz
upstream-03bc8d94f0d0579cf6de35d719b96f6b3df3345d.tar.bz2
upstream-03bc8d94f0d0579cf6de35d719b96f6b3df3345d.zip
host-build.mk: change default installation prefix of package/* host builds to staging_dir/target-*/host
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48401
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 16348b1c18..f95568a313 100644
--- a/rules.mk
+++ b/rules.mk
@@ -214,9 +214,9 @@ export PKG_CONFIG
HOSTCC:=gcc
HOSTCXX:=g++
-HOST_CPPFLAGS:=-I$(STAGING_DIR_HOST)/include -I$(STAGING_DIR_HOST)/usr/include
+HOST_CPPFLAGS:=-I$(STAGING_DIR_HOST)/include -I$(STAGING_DIR_HOST)/usr/include $(if $(IS_PACKAGE_BUILD),-I$(STAGING_DIR)/host/include)
HOST_CFLAGS:=-O2 $(HOST_CPPFLAGS)
-HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib -L$(STAGING_DIR_HOST)/usr/lib
+HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib -L$(STAGING_DIR_HOST)/usr/lib $(if $(IS_PACKAGE_BUILD),-L$(STAGING_DIR)/host/lib)
ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
TARGET_AR:=$(TARGET_CROSS)gcc-ar