[cairo] [PATCH 2/2] cairo-sphinx: protect -ldl link with CAIRO_HAS_DL like in cairo-trace.

Alexis Ballier aballier at gentoo.org
Fri Sep 21 04:22:55 PDT 2012


---
 util/cairo-sphinx/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/util/cairo-sphinx/Makefile.am b/util/cairo-sphinx/Makefile.am
index b25bd23..10bc10c 100644
--- a/util/cairo-sphinx/Makefile.am
+++ b/util/cairo-sphinx/Makefile.am
@@ -12,7 +12,9 @@ cairo_sphinx_la_SOURCES = fdr.c
 cairo_sphinx_la_CPPFLAGS = $(AM_CPPFLAGS)
 cairo_sphinx_la_CFLAGS = $(CAIRO_CFLAGS)
 cairo_sphinx_la_LDFLAGS = -module -no-undefined
+if CAIRO_HAS_DL
 cairo_sphinx_la_LIBADD = -ldl
+endif
 
 cairo_sphinx_SOURCES = sphinx.c
 cairo_sphinx_CPPFLAGS = $(AM_CPPFLAGS) -DLIBDIR="\"$(cairolibdir)\""
-- 
1.7.12



More information about the cairo mailing list