diff options
| author | Fernando Tarlá Cardoso Lemos <fernandotcl@gmail.com> | 2011-02-19 17:53:08 -0200 |
|---|---|---|
| committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-02-19 14:20:34 -0800 |
| commit | c4031966dcbc47b2cc85b83ad78efcc64455cf72 (patch) | |
| tree | d723696db3e5b4e443e2a16c58f08f3db75a568a | |
| parent | 208c7df5572f6ad8a63a4ee0fb1d5fd68c809653 (diff) | |
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>
| -rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 76c5c20..38717d0 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. |
