summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-03-16 20:58:08 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-03-16 20:58:08 +0000
commit40a54252eb821276ff1a3a43dd307779698ad4b6 (patch)
tree29b54910ac2658ab9870df86d8409ec9bcdd4421
parent58aaf754815926de90a90f16101999d7d2b03f8a (diff)
package/Makefile.in: search $(HOST_DIR) for host includes / libraries
-rw-r--r--package/Makefile.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/Makefile.in b/package/Makefile.in
index 42f0fcd4d..b94b5bc25 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -185,6 +185,11 @@ INSTALL=/usr/bin/install
FLEX:=$(shell which flex || type -p flex)
BISON:=$(shell which bison || type -p bison)
+HOST_CFLAGS += -I$(HOST_DIR)/include -I$(HOST_DIR)/usr/include
+HOST_CXXFLAGS += -I$(HOST_DIR)/include -I$(HOST_DIR)/usr/include
+HOST_LDFLAGS += -L$(HOST_DIR)/lib -L$(HOST_DIR)/usr/lib
+
+
# hostcc version as an integer - E.G. 4.3.2 => 432
HOSTCC_VERSION:=$(shell $(HOSTCC) --version | \
sed -n 's/^.* \([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)[ ]*.*$$/\1\2\3/p')