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 mingw/gold] Fix mingw gold build with plugins enabled for non-dlfcn case

On Sat, Jan 5, 2013 at 11:18 PM, Ian Lance Taylor <> wrote:
> On Fri, Dec 28, 2012 at 10:41 AM, Pavel Chupin <> wrote:
>> Attached patch fixes mingw build configured (for example) as:
>> ../configure --prefix=`pwd`/../INSTALL --target=i686-linux-android
>> --host=i586-pc-mingw32msvc --build=i386-linux-gnu --enable-plugins
>> --enable-gold
>> make
>> Error message:
>> ../../gold/ fatal error: dlfcn.h: No such file or directory
>> I'm fixing it like it's done in bfd configure: check for headers and
>> library, add/not-add -ldl on link.
>> Also adding windows.h case into to handle case when
>> mingw-dlfcn is not installed on the system.
>> ChangeLog:
>> 2012-12-25  Pavel Chupin  <>
>>        Fix mingw gold build with plugins enabled
>>        * gold/ Replace -ldl with @lt_cv_dlopen_libs@.
>>        * gold/aclocal.m4: Include libtool modules.
>>        * gold/ Export lt_cv_dlopen_libs and add headers check.
>>        * gold/ Handle non-dlfcn case.
>>        * gold/ Regenerate.
>>        * gold/ Regenerate.
>>        * gold/configure: Regenerate.
>>        * gold/testsuite/ Regenerate.
> Sorry for the slow review.  The general idea is fine but the
> formatting is wrong.  This is C++ code, not C: no space between
> function name and left parenthesis.  Keep line lengths less than 80
> columns--the body of dlsym needs a line break.  Don't define
> dlclose--it's not called.  dlerror should return an ordinary error
> string--no capitalization, no punctuation.
> In, the comment should be a complete sentence with proper
> capitalization and punctuation.  It should explain why you are using
> libtool.
> Thanks.
> Ian

Hi Ian,
Thanks for review. Please see modified patch attached.

Pavel Chupin
Intel Corporation

Attachment: gold-plugins-2.patch
Description: Binary data

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