[flac-dev] Patch for cross compilation with MinGW32

JonY jon_y at users.sourceforge.net
Sat Jun 23 20:12:05 PDT 2012


On 6/24/2012 10:23, Christoph Terasa wrote:
> Hello,
> 
> I had some difficulties compiling the current git (
> http://git.xiph.org/?p=flac.git;a=commit;h=a7e3705d051bafd1cae90f6605287cc1d9f2a18d
> ) using the Ubuntu 12.04 supplied MinGW32 cross compiler:
> 
> I configured the FLAC build with --host=i586-mingw32msvc
> --target=i586-mingw32msvc --build=i586-linux but ran into several linker
> problems. Are these options somehow wrong? It worked fine when I
> compiled libogg-0.dll. Anyway, I attached a patch to allow cross
> compilation with MinGW32 on my machine again:
> 
> First, I moved the implementation of *safe_malloc_mul_2op_ to alloc.h,
> just like all the other alloc implementations, and removed the thereby
> obsolete alloc.c implementation from grabbag.
> Second, I just wrapped FLAC__clz_soft_uint32 with an #ifndef __MINGW32__.

Curious, why is FLAC__clz_soft_uint32 needed?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: OpenPGP digital signature
Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20120624/fe3b3db9/attachment.pgp 


More information about the flac-dev mailing list