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] | |
Hi,
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/plugin.cc:32:19: 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 plugin.cc to handle case when
mingw-dlfcn is not installed on the system.
ChangeLog:
2012-12-25 Pavel Chupin <pavel.v.chupin@intel.com>
Fix mingw gold build with plugins enabled
* gold/Makefile.am: Replace -ldl with @lt_cv_dlopen_libs@.
* gold/aclocal.m4: Include libtool modules.
* gold/configure.ac: Export lt_cv_dlopen_libs and add headers check.
* gold/plugin.cc: Handle non-dlfcn case.
* gold/Makefile.in: Regenerate.
* gold/config.in: Regenerate.
* gold/configure: Regenerate.
* gold/testsuite/Makefile.in: Regenerate.
Ok for trunk?
--
Pavel Chupin
Intel Corporation
Attachment:
gold-mingw-plugins.patch
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |