[flac-dev] make dllimport/dllexport attributes work with mingw (and others)

lvqcl lvqcl.mail at gmail.com
Sun May 25 02:47:57 PDT 2014


Erik de Castro Lopo wrote:

> Ozkan Sezer wrote:
>
>> My apologies, obviously sent an old testing patch. Correct one is
>> attached (declspec2.diff). Compilation tested using MinGW (gcc-3.4.5,
>> binutils-2.20), and MinGW-w64 (gcc-4.5.4, binutils-2.21.90.)
>
> lvqcl,
>
> Can you please validate this new patch?

It works, but only if i call ./configure without arguments. And it fails
if i call ./configure with "--disable-shared", "--enable-static" or
both "--disable-shared --enable-static".


(If I use ./configure without arguments then flac.exe requires libFLAC-8.dll,
which in turn requires libgcc_s_sjlj-1.dll. Adding "--disable-shared" makes
flac.exe standalone: it doesn't need those libraries thst are foreign to
Windows systems).


More information about the flac-dev mailing list