[flac-dev] Can't cross-compile from git now.

Dave Yeo dave.r.yeo at gmail.com
Tue Mar 12 12:50:34 PDT 2013


On 03/12/13 12:39 pm, Erik de Castro Lopo wrote:
> For the Linux ->  Windows cross compile for instance, this detects
> SSP as working, but when I compile it fails with:
>
>      CC     stream_encoder_framing.lo
>      CC     window.lo
>      CCLD   libFLAC.la
>    Creating library file: .libs/libFLAC.dll.a
>    .libs/metadata_iterators.o:metadata_iterators.c:(.text+0x8d): undefined reference to `___stack_chk_guard'
>    .libs/metadata_iterators.o:metadata_iterators.c:(.text+0x121): undefined reference to `___stack_chk_guard'
>    .libs/metadata_iterators.o:metadata_iterators.c:(.text+0x14f): undefined reference to `___stack_chk_fail'
>
> The odd thinh is, if I use this MinGW cross-compiler to compile a small
> program, it works perfectly. The problem aboce is related to building
> a Windows DLL.

I can get around the undefined symbol errors by doing make LDFLAGS=-lssp 
Perhaps Windows and FreeBSD will also work if linked against ssp.a / 
ssp.dll. OF course this introduces another dependency.
Dave


More information about the flac-dev mailing list