--- binutils.orig/config/plugins.m4 2019-05-14 13:04:26.467925154 +0100
+++ binutils-2.30/config/plugins.m4 2019-05-14 13:05:36.961396058 +0100
@@ -10,12 +10,13 @@ AC_DEFUN([AC_PLUGINS],
no) plugins=no ;;
*) plugins=yes
if test "$maybe_plugins" != "yes" ; then
- AC_MSG_ERROR([Building with plugin support requires a host that supports dlopen.])
+ AC_MSG_ERROR([Building with plugin support requires a host that supports dlopen and dlsym.])
fi ;;
esac],
[plugins=$maybe_plugins]
)
if test "$plugins" = "yes"; then
AC_SEARCH_LIBS([dlopen], [dl])
+ AC_SEARCH_LIBS([dlsym], [dl])
fi
])