summaryrefslogtreecommitdiff
path: root/hunspell
diff options
context:
space:
mode:
authortono <tono@openoffice.org>2010-05-31 21:28:11 +0900
committertono <tono@openoffice.org>2010-05-31 21:28:11 +0900
commitd1d09abe2763b4dffe63db568cc1472505f057d5 (patch)
tree4b703ba48bdc21b1319c78b43852e5ec45556926 /hunspell
parent950e032f32f68ecdbcc0dec2b7214a66941b855d (diff)
i#111382: Mingw port for hunspell 1.2.9
Diffstat (limited to 'hunspell')
-rw-r--r--hunspell/hunspell-mingw.patch12
-rw-r--r--hunspell/makefile.mk5
2 files changed, 16 insertions, 1 deletions
diff --git a/hunspell/hunspell-mingw.patch b/hunspell/hunspell-mingw.patch
new file mode 100644
index 000000000000..0120e01ddba1
--- /dev/null
+++ b/hunspell/hunspell-mingw.patch
@@ -0,0 +1,12 @@
+--- misc/hunspell-1.2.9/src/tools/hunspell.cxx 2010-02-27 23:37:14.000000000 +0900
++++ misc/build/hunspell-1.2.9/src/tools/hunspell.cxx 2010-04-25 07:57:39.233875000 +0900
+@@ -27,7 +27,9 @@
+
+ #ifdef WIN32
+
++#ifndef __MINGW32__
+ #define gettext
++#endif
+ #define LIBDIR "C:\\Hunspell\\"
+ #define USEROOODIR "Application Data\\OpenOffice.org 2\\user\\wordbook"
+ #define OOODIR \
diff --git a/hunspell/makefile.mk b/hunspell/makefile.mk
index f58204a33bc5..50916926d3f4 100644
--- a/hunspell/makefile.mk
+++ b/hunspell/makefile.mk
@@ -71,8 +71,11 @@ OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a
.IF "$(GUI)"=="WNT"
.IF "$(COM)"=="GCC"
+PATCH_FILES=\
+ hunspell-mingw.patch
+
CONFIGURE_ACTION=configure
-CONFIGURE_FLAGS= --disable-shared --with-pic
+CONFIGURE_FLAGS= --disable-shared --with-pic LDFLAGS=-Wl,--enable-auto-import
BUILD_ACTION=make
OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a
.ELSE