Blame SOURCES/0001-build-Explicitly-link-to-libdl.patch

509279
From 4ad97abc893ded93296f7c157631369fbddcf90a Mon Sep 17 00:00:00 2001
509279
From: Christian Persch <chpe@src.gnome.org>
509279
Date: Tue, 13 Mar 2018 12:32:15 +0100
509279
Subject: [PATCH] build: Explicitly link to libdl
509279
509279
https://bugzilla.gnome.org/show_bug.cgi?id=794281
509279
---
509279
 configure.ac          | 7 +++++++
509279
 gucharmap/Makefile.am | 1 +
509279
 2 files changed, 8 insertions(+)
509279
509279
diff --git a/configure.ac b/configure.ac
509279
index edbeafc3edf0..a4aa04a52d5a 100644
509279
--- a/configure.ac
509279
+++ b/configure.ac
509279
@@ -120,6 +120,13 @@ PKG_CHECK_MODULES([GTK],[
509279
   freetype2
509279
 ])
509279
 
509279
+sv_LIBS="$LIBS"
509279
+LIBS=
509279
+AC_SEARCH_LIBS([dlsym],[dl])
509279
+LIBDL="$LIBS"
509279
+LIBS="$sv_LIBS"
509279
+AC_SUBST([LIBDL])
509279
+
509279
 GLIB_GENMARSHAL="$($PKG_CONFIG --variable=glib_genmarshal glib-2.0)"
509279
 AC_SUBST([GLIB_GENMARSHAL])
509279
 GLIB_MKENUMS="$($PKG_CONFIG --variable=glib_mkenums glib-2.0)"
509279
diff --git a/gucharmap/Makefile.am b/gucharmap/Makefile.am
509279
index e14b9d08b209..86b8b013311f 100644
509279
--- a/gucharmap/Makefile.am
509279
+++ b/gucharmap/Makefile.am
509279
@@ -156,6 +156,7 @@ gucharmap_LDFLAGS = \
509279
 gucharmap_LDADD = \
509279
 	libgucharmap@GUCHARMAP_LIBRARY_SUFFIX_U@.la	\
509279
 	$(GTK_LIBS)	\
509279
+	$(LIBDL) \
509279
 	$(INTL_LIBS)
509279
 
509279
 dist_noinst_DATA = gucharmap-menus.ui
509279
-- 
509279
2.16.2
509279