From 0e4452e02a1036e7c85059762cd7b5f5aede1eaa Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Wed, 1 Feb 2012 11:31:31 +0200 Subject: [PATCH] configure: add libpng to client libs http://lists.freedesktop.org/archives/wayland-devel/2012-January/001975.html reports a linking problem: /usr/bin/ld: libtoytoolkit.a(cairo-util.o): undefined reference to symbol 'png_set_filler@@PNG12_0' /usr/bin/ld: note: 'png_set_filler@@PNG12_0' is defined in DSO /usr/lib/i386-linux-gnu/libpng12.so.0 so try adding it to the linker command line /usr/lib/i386-linux-gnu/libpng12.so.0: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[3]: [weston-terminal] Error 1 (ignored) A similar problem is diagnosed here: http://lists.fedoraproject.org/pipermail/devel/2010-March/133601.html As some distros are shipping linkers, that do not resolve symbols from implicitly linked libraries, check and link libpng explicitly. Cc: nerdopolis Signed-off-by: Pekka Paalanen --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7bc9881c..550bb3c8 100644 --- a/configure.ac +++ b/configure.ac @@ -117,7 +117,7 @@ AM_CONDITIONAL(BUILD_CLIENTS, test x$enable_clients == xyes) if test x$enable_clients == xyes; then AC_DEFINE([BUILD_CLIENTS], [1], [Build the Wayland clients]) - PKG_CHECK_MODULES(CLIENT, [wayland-client wayland-egl egl >= 7.10 cairo >= 1.10.0 gdk-pixbuf-2.0 glib-2.0 gobject-2.0 gio-2.0 xkbcommon]) + PKG_CHECK_MODULES(CLIENT, [wayland-client wayland-egl egl >= 7.10 cairo >= 1.10.0 gdk-pixbuf-2.0 glib-2.0 gobject-2.0 gio-2.0 xkbcommon libpng]) PKG_CHECK_MODULES(POPPLER, [poppler-glib], [have_poppler=yes], [have_poppler=no])