Sources Bugzilla – Bug 14430
binutils-2.22.90 plugin code fails to build on FreeBSD due to hardcoding of -ldl
Last modified: 2013-01-27 16:59:01 UTC
Created attachment 6565 [details]
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:
From: "H.J. Lu" <firstname.lastname@example.org>
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.
From: Ian Lance Taylor <email@example.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.