summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4')
-rw-r--r--m4/ltdl.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/m4/ltdl.m4 b/m4/ltdl.m4
index eeb37ac4..41198441 100644
--- a/m4/ltdl.m4
+++ b/m4/ltdl.m4
@@ -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