[PATCH] XDM: Fix FTBFS with gold or recent gcc releases.

Fernando Tarlá Cardoso Lemos fernandotcl at gmail.com
Sat Feb 19 08:51:36 PST 2011


Some references:

http://wiki.debian.org/ToolChain/DSOLinking
https://fedoraproject.org/wiki/UnderstandingDSOLinkChange
---
 configure.ac |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 39a3655..13a2a58 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,6 +79,9 @@ AM_CONDITIONAL(HAVE_ARC4RANDOM, test x$HAVE_ARC4RANDOM = xyes)
 
 # Function crypt() comes from the C library or the -lcrypt data encryption library
 AC_SEARCH_LIBS(crypt, crypt)
+
+# Function dl() comes from the C library or -ldl
+AC_SEARCH_LIBS([dlopen], [dl])
 #------------------------------------------------------------------------------
 
 # Checks for header files.
@@ -287,7 +290,7 @@ AC_SUBST(SHELL_CMD)
 
 # Checks for pkg-config packages
 
-PKG_CHECK_MODULES(XDM, xmu x11 xau)
+PKG_CHECK_MODULES(XDM, xmu x11 xau xext)
 
 PKG_CHECK_EXISTS(xinerama, [
 	AC_DEFINE([USE_XINERAMA], 1, 
-- 
1.7.4.1



More information about the xorg-devel mailing list