[flac-dev] ogg not statically linked

Ulrich Klauer ulrich at chirlu.de
Tue Apr 9 16:48:00 PDT 2013


Martijn van Beurden wrote:

> I was running some tests cross-compiling and natively compiling for
> windows with mingw and found something strange: when I try to built flac
> statically linked and libogg is available as a dll, flac will use the
> dll instead of linking statically. If I built libogg with
> --disable-shared, flac will use the static library. This is the case for
> building natively as well as when cross-compiling. I've verified this
> with the dependency walker.

libtool might prefer dynamic libraries over static ones if both are  
available, but you can force it to create a static executable via  
"-all-static":
   make LDFLAGS="-all-static"

Ulrich



More information about the flac-dev mailing list