From afd67b7db1da10f92af3125790048d8caede38a5 Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Tue, 14 Mar 2006 20:46:30 +0000 Subject: [PATCH] bug 329140 make layout/build link to cairo when needed r=vlad --- layout/build/Makefile.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/layout/build/Makefile.in b/layout/build/Makefile.in index 802698af766a..9ddb16ecaaae 100644 --- a/layout/build/Makefile.in +++ b/layout/build/Makefile.in @@ -235,6 +235,14 @@ EXTRA_DSO_LDOPTS += $(MOZ_CAIRO_LIBS) \ endif endif +ifdef MOZ_ENABLE_CAIRO_GFX +ifndef MOZ_TREE_CAIRO +# In an in-tree cairo build, cairo is part of libthebes +# otherwise, we need to link it separately. +EXTRA_DSO_LDOPTS += $(MOZ_CAIRO_LIBS) +endif +endif + ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT))) EXTRA_DSO_LDOPTS += \ $(TK_LIBS) \