diff --git a/config/ChangeLog b/config/ChangeLog index 746a0a01ba0..18f65078c42 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2018-04-05 H.J. Lu + + PR gas/22318 + * plugins.m4 (AC_PLUGINS): Use dlsym to check if libdl is needed. + 2018-02-14 Igor Tsimbalist PR target/84148 diff --git a/config/plugins.m4 b/config/plugins.m4 index 513c690e1b5..c6acebc1ca4 100644 --- a/config/plugins.m4 +++ b/config/plugins.m4 @@ -16,6 +16,6 @@ AC_DEFUN([AC_PLUGINS], [plugins=$maybe_plugins] ) if test "$plugins" = "yes"; then - AC_SEARCH_LIBS([dlopen], [dl]) + AC_SEARCH_LIBS([dlsym], [dl]) fi ])