From dabe10eb94fda61ec39932548c4279611b057658 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Thu, 25 Apr 2013 15:35:38 +0200 Subject: workaround race condition with mixing internal/system cairo libs http://lists.freedesktop.org/archives/libreoffice/2013-April/051026.html Change-Id: I81031d8290efcc4f343af7bdffb4762411f4f107 --- extensions/StaticLibrary_plugcon.mk | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'extensions') diff --git a/extensions/StaticLibrary_plugcon.mk b/extensions/StaticLibrary_plugcon.mk index 3cc8ba15cc33..deb62a834a36 100644 --- a/extensions/StaticLibrary_plugcon.mk +++ b/extensions/StaticLibrary_plugcon.mk @@ -52,6 +52,14 @@ $(eval $(call gb_StaticLibrary_add_defs,plugcon,\ )) $(eval $(call gb_StaticLibrary_use_external,plugcon,gtk)) + +# Gtk uses cairo, and if we build internal cairo, the linker could +# pick up our cairo libs before they're fully ready, causing problems +# (e.g. using our libpixman and system libcairo). Depend on cairo +# to delay build until cairo is done. +ifeq ($(SYSTEM_CAIRO),NO) +$(eval $(call gb_StaticLibrary_use_external,plugcon,cairo)) +endif endif # ENABLE_GTK=TRUE $(eval $(call gb_StaticLibrary_add_exception_objects,plugcon,\ -- cgit