mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] MXE: How to build a self-sufficient DLL that


From: Matthias Geier
Subject: Re: [Mingw-cross-env-list] MXE: How to build a self-sufficient DLL that statically includes other libraries?
Date: Wed, 25 Mar 2015 20:02:57 +0100

Hello again!

I did some more digging regarding the warning message I got:

*** Warning: This system can not link to static lib archive
[...]/usr/x86_64-w64-mingw32/lib/libvorbis.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

... and I found this very interesting thread:
http://ehc.ac/p/mingw/mailman/message/20144165/

According to this, the culprit may be libtool, because it just doesn't
support linking a static library into a dynamic one.
But there may be 2 work-arounds:

1) pass some linker flags like -Wl,/path/to/libfoo.a or -Wl,-lfoo.a
2) use dlltool

Both sound promising, but I don't know the exact usage of any of them.

Can somebody help me with this?

Here's what I want to do, for those who didn't read my previous messages:
I would like to create a DLL of libsndfile that statically includes
all its dependencies so I can use it from within Python.

I've successfully compiled everything as static and everything as
shared, but I don't know how to take the static libs and forge them
together into a single shared DLL.

cheers,
Matthias



reply via email to

[Prev in Thread] Current Thread [Next in Thread]