[prev in list] [next in list] [prev in thread] [next in thread]
List: flac-dev
Subject: Re: [flac-dev] Patch for cross compilation with MinGW32
From: Cristian_Rodríguez <crrodriguez () opensuse ! org>
Date: 2012-07-01 19:12:39
Message-ID: 4FF0A127.4090200 () opensuse ! org
[Download RAW message or body]
El 23/06/12 22:23, Christoph Terasa escribió:
> 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__.
>
> I tested the patch for both Linux and MinGW32 compiles, and both result
> in functional programs.
>
It works for me.. with mingw32-cross-gcc-4.7.0-8.43.x86_64 and the
resulting binaries also work.
_______________________________________________
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic