This is the mail archive of the 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 <> 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  <>
>>       * (LIBDL): Use @plugin_libs@.
>>       * Regenerated.
>>       * doc/ Likewise.
>>       * (plugin_libs): New variable.
>>       * configure: Regenerated.

Does this patch work for you?


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]