This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Attachment: binutils-dl-1.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]