Created attachment 6565 [details] Failure log The upcoming 2.23 release fails to build on FreeBSD because it attempts to link -ldl during the build process. I believe that FreeBSD's libc includes this library's functionality.
This also affects binutils 2.22. A patch for this issue was sent to the binutils mailing list, but there was no response: http://sourceware.org/ml/binutils/2012-04/msg00040.html
binutils fix: From: "H.J. Lu" <hjl.tools@gmail.com> Date: Sat, 13 Oct 2012 14:17:08 +0000 Subject: [PATCH] Replace -ldl with @lt_cv_dlopen_libs@ * Makefile.am (LIBDL): Replace -ldl with @lt_cv_dlopen_libs@. * configure.in (lt_cv_dlopen_libs): AC_SUBST. * Makefile.in: Regenerated. * configure: Likewise. gold fix: From: Ian Lance Taylor <ian@airs.com> Date: Fri, 11 Jan 2013 14:36:36 +0000 Subject: [PATCH] Fix mingw gold build with plugins enabled * Makefile.am: Replace -ldl with @DLOPEN_LIBS@. * configure.ac: Export DLOPEN_LIBS and add headers check. * plugin.cc: Handle non-dlfcn case. * Makefile.in: Regenerate. * config.in: Regenerate. * configure: Regenerate. * testsuite/Makefile.in: Regenerate.