summaryrefslogtreecommitdiff
path: root/external/hunspell/ExternalProject_hunspell.mk
diff options
context:
space:
mode:
Diffstat (limited to 'external/hunspell/ExternalProject_hunspell.mk')
-rw-r--r--external/hunspell/ExternalProject_hunspell.mk17
1 files changed, 14 insertions, 3 deletions
diff --git a/external/hunspell/ExternalProject_hunspell.mk b/external/hunspell/ExternalProject_hunspell.mk
index 160f2b1864fd..984485fc2a2c 100644
--- a/external/hunspell/ExternalProject_hunspell.mk
+++ b/external/hunspell/ExternalProject_hunspell.mk
@@ -13,14 +13,25 @@ $(eval $(call gb_ExternalProject_register_targets,hunspell,\
build \
))
+hunspell_CPPCLAGS=$(CPPFLAGS)
+
+ifneq (,$(filter ANDROID DRAGONFLY FREEBSD IOS LINUX NETBSD OPENBSD,$(OS)))
+ifneq (,$(gb_ENABLE_DBGUTIL))
+hunspell_CPPFLAGS+=-D_GLIBCXX_DEBUG
+endif
+endif
+
$(call gb_ExternalProject_get_state_target,hunspell,build):
$(call gb_ExternalProject_run,build,\
+ $(if $(filter IOS MACOSX,$(OS)),ACLOCAL="aclocal -I $(SRCDIR)/m4/mac") \
LIBS="$(gb_STDLIBS) $(LIBS)" \
- ./configure --disable-shared --disable-nls --with-pic \
+ autoreconf && \
+ $(SHELL) ./configure --disable-shared --disable-nls --with-pic \
$(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM))\
$(if $(filter AIX,$(OS)),CFLAGS="-D_LINUX_SOURCE_COMPAT") \
- $(if $(filter-out WNTGCC,$(OS)$(COM)),,LDFLAGS="-Wl,--enable-runtime-pseudo-reloc-v2") \
- && $(MAKE) \
+ $(if $(hunspell_CPPFLAGS),CPPFLAGS='$(hunspell_CPPFLAGS)') \
+ CXXFLAGS="$(CXXFLAGS) $(if $(debug),$(gb_COMPILERNOOPTFLAGS) $(gb_DEBUGINFO_FLAGS) $(gb_DEBUG_CXXFLAGS),$(gb_COMPILEROPTFLAGS))" \
+ && cd src/hunspell && $(MAKE) \
)
# vim: set noet sw=4 ts=4: