Fix use of a dangling pointer for Python breakpoint objects
[external/binutils.git] / config / plugins.m4
index f65fdcb..513c690 100644 (file)
@@ -15,4 +15,7 @@ AC_DEFUN([AC_PLUGINS],
      esac],
     [plugins=$maybe_plugins]
   )
+  if test "$plugins" = "yes"; then
+    AC_SEARCH_LIBS([dlopen], [dl])
+  fi
 ])