summaryrefslogtreecommitdiff
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2011-12-27 00:16:36 +0100
committerMatúš Kukan <matus.kukan@gmail.com>2011-12-27 00:31:47 +0100
commit472a7db1ef118147d949b13c66bb86411dbc7a75 (patch)
tree85c1d9c8ec0bfddd0f03d564b1bb86a5b0cc518d /RepositoryExternal.mk
parente71d6df4137515f928d87375e404459cf9f310be (diff)
register hunspell as static library
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r--RepositoryExternal.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 6b9ebc0ccb4a..ac2a95bd298d 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -192,6 +192,10 @@ endef
else # !SYSTEM_HUNSPELL
+$(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
+ $(if $(filter MSC,$(COM)),libhunspell,hunspell-1.3) \
+))
+
define gb_LinkTarget__use_hunspell
$(call gb_LinkTarget_add_defs,$(1),\
-DHUNSPELL_STATIC \
@@ -200,8 +204,8 @@ $(call gb_LinkTarget_set_include,$(1),\
$$(INCLUDE) \
-I$(OUTDIR)/inc/hunspell \
)
-$(call gb_LinkTarget_add_libs,$(1),\
- $(if $(filter WNT,$(OS)),libhunspell.lib,-lhunspell-1.3) \
+$(call gb_LinkTarget_add_linked_static_libs,$(1),\
+ $(if $(filter MSC,$(COM)),libhunspell,hunspell-1.3) \
)
endef