diff --git a/Repository.mk b/Repository.mk index 72a88d3e8429..b9cf9c2ddb9c 100644 --- a/Repository.mk +++ b/Repository.mk @@ -376,7 +376,7 @@ endif $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,ooo, \ avmedia \ - LanguageTool \ + $(if $(ENABLE_CURL),LanguageTool) \ $(call gb_Helper_optional,AVMEDIA, \ $(if $(filter MACOSX,$(OS)),\ avmediaMacAVF \ diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index 0eddf400a77c..46b1c1bb70ed 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -2737,9 +2737,10 @@ endef else # !SYSTEM_CURL +$(if $(ENABLE_CURL),\ $(eval $(call gb_Helper_register_packages_for_install,ooo,\ curl \ -)) +))) define gb_LinkTarget__use_curl $(call gb_LinkTarget_use_package,$(1),curl)