[PATCH] bfd: Conditionally link against libdl for plugin support

H.J. Lu hjl.tools@gmail.com
Thu Oct 4 14:44:00 GMT 2012


On Wed, Oct 3, 2012 at 1:57 PM, Meador Inge <meadori@codesourcery.com> wrote:
> Ping.
>
> On 09/24/2012 05:59 PM, Meador Inge wrote:
>> Hi All,
>>
>> A few months back Kai fixed PR ld/12742 to enable plugins to work
>> with mingw host binaries.  With a current binutils source tree I can't
>> build for a i686-pc-mingw32 host (using Fedora MinGW 4.6.1-3.fc16)
>> because -ldl is unconditionally placed on the link line whenever
>> things are configured with --enable-plugins.
>>
>> By my reading of PR ld/12742 others have gotten this to work.  I am not sure
>> how since the -ldl seems unconditional is support for plugins is enabled.  The
>> attached patch fixed things for me, but maybe I am missing something since
>> others seem to have gotten this to work with unpatched sources.
>>
>> Comments?
>>
>> 2012-09-24  Meador Inge  <meadori@codesourcery.com>
>>
>>       * Makefile.am (LIBDL): Use @plugin_libs@.
>>       * Makefile.in: Regenerated.
>>       * doc/Makefile.in: Likewise.
>>       * configure.in (plugin_libs): New variable.
>>       * configure: Regenerated.
>>

Does this patch work for you?

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-dl-1.patch
Type: application/octet-stream
Size: 2600 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20121004/ac2e4b8b/attachment.obj>


More information about the Binutils mailing list