summaryrefslogtreecommitdiff
path: root/expat
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-05-26 01:13:27 +0300
committerTor Lillqvist <tml@iki.fi>2011-05-26 01:13:27 +0300
commit315641944d405f9c304ff8e2dc4de22ae99f45fd (patch)
tree002c868deacdf83e4b1576f055ce55992a685a9f /expat
parent8e872440fdf116e903baf92c80b88154566688c8 (diff)
Pass --build and --host when cross-compiling
Diffstat (limited to 'expat')
-rw-r--r--expat/makefile.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/expat/makefile.mk b/expat/makefile.mk
index 867e2b371558..6084cf54bddd 100644
--- a/expat/makefile.mk
+++ b/expat/makefile.mk
@@ -55,6 +55,10 @@ CONFIGURE_ACTION=
CONFIGURE_ACTION=.$/configure
.ENDIF
+.IF "$(CROSS_COMPILING)"!=""
+CONFIGURE_FLAGS+= --build="$(BUILD_PLATFORM)" --host="$(HOST_PLATFORM)"
+.ENDIF
+
BUILD_DIR=lib
BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS)