diff options
Diffstat (limited to 'external/hunspell')
-rw-r--r-- | external/hunspell/ExternalProject_hunspell.mk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/external/hunspell/ExternalProject_hunspell.mk b/external/hunspell/ExternalProject_hunspell.mk index 160f2b1864fd..393031bca36d 100644 --- a/external/hunspell/ExternalProject_hunspell.mk +++ b/external/hunspell/ExternalProject_hunspell.mk @@ -13,6 +13,18 @@ $(eval $(call gb_ExternalProject_register_targets,hunspell,\ build \ )) +hunspell_CXXFLAGS=$(CXXFLAGS) + +ifneq (,$(filter ANDROID DRAGONFLY FREEBSD IOS LINUX NETBSD OPENBSD,$(OS))) +ifneq (,$(gb_ENABLE_DBGUTIL)) +hunspell_CXXFLAGS+=-D_GLIBCXX_DEBUG +endif +endif + +ifneq (,$(debug)) +hunspell_CXXFLAGS+=-g +endif + $(call gb_ExternalProject_get_state_target,hunspell,build): $(call gb_ExternalProject_run,build,\ LIBS="$(gb_STDLIBS) $(LIBS)" \ @@ -20,6 +32,7 @@ $(call gb_ExternalProject_get_state_target,hunspell,build): $(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") \ + CXXFLAGS="$(hunspell_CXXFLAGS)" \ && $(MAKE) \ ) |