summaryrefslogtreecommitdiff
path: root/hunspell
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-05-27 21:04:26 +0300
committerTor Lillqvist <tml@iki.fi>2011-05-29 20:16:21 +0300
commitb2c1dd30f3db212c6bbd48394fca04668e0cde93 (patch)
tree998df61b29a54cb343242f7fbe13d405604b595e /hunspell
parent93b1b381ed8567029cc077a818e5aff0b4ed1482 (diff)
Pass --build and --host options when cross-compiling
Diffstat (limited to 'hunspell')
-rw-r--r--hunspell/makefile.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/hunspell/makefile.mk b/hunspell/makefile.mk
index 6ab9b36cc877..a28d63e0dd1f 100644
--- a/hunspell/makefile.mk
+++ b/hunspell/makefile.mk
@@ -66,6 +66,10 @@ CONFIGURE_FLAGS+= CFLAGS="$(EXTRA_CFLAGS)" CXXFLAGS="$(EXTRA_CFLAGS)"
CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
.ENDIF
+.IF "$(CROSS_COMPILING)"!=""
+CONFIGURE_FLAGS+= --build="$(BUILD_PLATFORM)" --host="$(HOST_PLATFORM)"
+.ENDIF
+
BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a