From 9e6cce35a06ea3eab85f0d35da0d82eabb238ce7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 5 Jun 2008 10:13:45 +0000 Subject: [PATCH] configure.ac: Explicitely link with -ldl if dladdr() is found there. Before it was implicitely linked by the gmodule ... Original commit message from CVS: * configure.ac: Explicitely link with -ldl if dladdr() is found there. Before it was implicitely linked by the gmodule pkgconfig file but in glib 2.17.0 -ldl has moved from Libs to Libs.private. Fixes bug #536744. --- ChangeLog | 7 +++++++ configure.ac | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b7fc3b37b6..3a58dab765 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-06-05 Sebastian Dröge + + * configure.ac: + Explicitely link with -ldl if dladdr() is found there. Before it was + implicitely linked by the gmodule pkgconfig file but in glib 2.17.0 + -ldl has moved from Libs to Libs.private. Fixes bug #536744. + 2008-06-05 Tim-Philipp Müller * gst/gsterror.c: (_gst_stream_errors_init): diff --git a/configure.ac b/configure.ac index 18f5ee9a20..fcb01b26ea 100644 --- a/configure.ac +++ b/configure.ac @@ -454,8 +454,8 @@ dnl test if we have dladdr(); we use it for debugging; see gst/gstinfo.c save_cflags="$CFLAGS" CFLAGS="$CFLAGS -D_GNU_SOURCE" AC_CHECK_LIB(dl, dladdr, - AC_DEFINE(HAVE_DLADDR, 1, - [Defined if we have dladdr ()])) + AC_DEFINE(HAVE_DLADDR, 1, [Defined if we have dladdr ()]) + LIBS="$LIBS -ldl") CFLAGS="$save_cflags" dnl check for inet_aton()