diff options
author | Gary V. Vaughan <gary@gnu.org> | 2014-11-26 19:36:47 +0000 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2014-11-26 19:47:43 +0000 |
commit | 1acee63da4b98fecdb59b3ce4b67a4d5fbd21323 (patch) | |
tree | 1ac0737f2e190a7278e2ee2a9670fd4ce43cb5eb /m4 | |
parent | 845ff0b76837a630eb54d23eb66912339b589a65 (diff) | |
download | libtool-1acee63da4b98fecdb59b3ce4b67a4d5fbd21323.tar.gz |
ltdl: fix a long standing duplicate `-ldl' bug in the link line.
* m4/ltdl.m4 (LT_LIB_DLLOAD): Save contents of LIBS before
calling AC_SEARCH_LIBS, which prepends to LIBS by default, and
restore afterwards. We set LIBADD_DLOPEN and LIBADD_SHL_LOAD
so that dynamic loader libraries can be added selectively only
where they are needed.
* NEWS: Update.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ltdl.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -651,6 +651,7 @@ LT_DLLOADERS= AC_SUBST([LT_DLLOADERS]) AC_LANG_PUSH([C]) +lt_dlload_save_LIBS=$LIBS LIBADD_DLOPEN= AC_SEARCH_LIBS([dlopen], [dl], @@ -734,6 +735,7 @@ dnl This isn't used anymore, but set it for backwards compatibility LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" AC_SUBST([LIBADD_DL]) +LIBS=$lt_dlload_save_LIBS AC_LANG_POP ])# LT_LIB_DLLOAD |