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: no DLL when compiling on Windows (mingw)


On Sun, Oct 14, 2012 at 1:42 PM, Vincent Torri <vincent.torri@gmail.com> wrote:
> Hello,
>
> I'm on Win7 64 bits, trying to compile binutils with MSYS and
> MinGW-w64 (targetting 64 bits). I've dowloaded the snapshot the
> october the 14th.
>
> opcode and libbfd DLL are not created. I think that the problem is
> that -no-undefined is passed only for cygwin (bfd/configure.in, line
> 557), and not for mingw.
>
> something like:
>
> mingw*)
>     SHARED_LDFLAGS="-no-undefined"
>     SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl
> -lintl -lkernel32"
> ;;
>
> should work.

Normally,  -lkernel32 is passed to the linker thanks to libtool and
should not be needed.

I have also forgotten that win32-dll must be passed to LT_INIT. See

http://www.gnu.org/software/libtool/manual/libtool.html#LT_005fINIT

thank you

Vincent Torri


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