xdm/U_xdm_Fix-missing-linking-dependency-on-ldl.patch

33 lines
1.1 KiB
Diff

From c4031966dcbc47b2cc85b83ad78efcc64455cf72 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fernando=20Tarl=C3=A1=20Cardoso=20Lemos?= <fernandotcl@gmail.com>
Date: Sat, 19 Feb 2011 17:53:08 -0200
Subject: [PATCH] Fix missing linking dependency on -ldl.
Recent versions of GCC ship with a linker that doesn't add the deps
of the DSOs to the linking process. This behavior is also found in
GNU gold. This change fixes building with those linkers.
Some references:
http://wiki.debian.org/ToolChain/DSOLinking
https://fedoraproject.org/wiki/UnderstandingDSOLinkChange
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
---
configure.ac | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
--- xdm-1.1.10/configure.ac.orig 2011-08-25 13:56:01.551431000 +0200
+++ xdm-1.1.10/configure.ac 2011-08-25 13:57:09.137351000 +0200
@@ -462,6 +462,9 @@ AM_CONDITIONAL(HAS_XDM_AUTH, test x$xdma
AC_SEARCH_LIBS(crypt, crypt)
+# Function dl() comes from the C library or -ldl
+AC_SEARCH_LIBS([dlopen], [dl])
+
AC_SUBST(XDM_CFLAGS)
AC_SUBST(XDM_LIBS)