summaryrefslogtreecommitdiff
path: root/hunspell
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-06-17 23:35:37 +0300
committerTor Lillqvist <tlillqvist@novell.com>2011-06-17 23:35:37 +0300
commit55b7e3d8d3ed6ffcf99568689c08d0645bfde1f5 (patch)
treeb1c7bfe3013d3c16409c6e94dc6847a6df7e53b2 /hunspell
parentec7e1a9608971e9d7fd24d586ef8b1e8df54e84d (diff)
Pass --build and --host options also when cross-compiling to Windows
Diffstat (limited to 'hunspell')
-rw-r--r--hunspell/makefile.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/hunspell/makefile.mk b/hunspell/makefile.mk
index b363d983a7d8..d43bcb07e8e2 100644
--- a/hunspell/makefile.mk
+++ b/hunspell/makefile.mk
@@ -81,7 +81,13 @@ OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a
.IF "$(GUI)"=="WNT"
.IF "$(COM)"=="GCC"
CONFIGURE_ACTION=configure
+
CONFIGURE_FLAGS= --disable-shared --disable-nls --with-pic LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2
+
+.IF "$(CROSS_COMPILING)"=="YES"
+CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
+.ENDIF
+
BUILD_ACTION=make
OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a
.ELSE