summaryrefslogtreecommitdiff
path: root/RepositoryModule_host.mk
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-12-15 13:49:08 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2014-12-15 14:42:59 +0100
commitb6be3d3db3ffbc4c1a4528a8dc17aa95084e12ca (patch)
treee0f15c723a60e673ee4e2acc394aaf04dd0a0e94 /RepositoryModule_host.mk
parent13de511e7c3c7423dbac7e8751c95cac17194b69 (diff)
gbuild: Do not require gb_Library_use_externals for libmerged
Instead, automatically get the externals when parsing other makefiles. This commit fixes the build and hopefully avoids problems in future because people didn't know they had to add externals for libmerged too. Similar should be done for other functions like add_libs... Change-Id: I5aea4c43f4b6838092ada81c310ef1100f241108
Diffstat (limited to 'RepositoryModule_host.mk')
-rw-r--r--RepositoryModule_host.mk17
1 files changed, 10 insertions, 7 deletions
diff --git a/RepositoryModule_host.mk b/RepositoryModule_host.mk
index a3567c486d8f..f6a9c6ec5c0f 100644
--- a/RepositoryModule_host.mk
+++ b/RepositoryModule_host.mk
@@ -11,6 +11,16 @@
$(eval $(call gb_Module_Module,libreoffice))
+# This makefile needs to be read first because some variables like T_LIBS
+# for libmerged are cleared there and then later we append stuff to it
+# through e.g. gb_Library_use_external for various libraries in libmerged.
+ifneq ($(MERGELIBS),)
+$(eval $(call gb_Module_add_targets,libreoffice,\
+ Library_merged \
+ $(if $(URELIBS),Library_urelibs) \
+))
+endif
+
$(eval $(call gb_Module_add_moduledirs,libreoffice,\
accessibility \
android \
@@ -155,13 +165,6 @@ $(eval $(call gb_Module_add_moduledirs,libreoffice,\
xmlsecurity \
))
-ifneq ($(MERGELIBS),)
-$(eval $(call gb_Module_add_targets,libreoffice,\
- Library_merged \
- $(if $(URELIBS),Library_urelibs) \
-))
-endif
-
# Especially when building everything with symbols, the linking of the largest
# libraries takes enormous amounts of RAM. To prevent annoying OOM situations
# etc., try to prevent linking these in parallel by adding artificial build