[vlc-devel] [PATCH] Fix win32 build errors

Edward Wang edward.c.wang at compdigitec.com
Mon May 28 13:22:15 CEST 2012


On 12-05-28 07:11 AM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> On Mon, 28 May 2012 06:53:25 -0400, Edward Wang
> <edward.c.wang at compdigitec.com>  wrote:
>> Fix include/vlc_atomic.h:124: undefined reference to
>> `___sync_bool_compare_and_swap_4' etc
>> ---
>>   extras/package/win32/configure.sh |    2 +-
>>   1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/extras/package/win32/configure.sh
>> b/extras/package/win32/configure.sh
>> index b1e5e13..55c81d3 100755
>> --- a/extras/package/win32/configure.sh
>> +++ b/extras/package/win32/configure.sh
>> @@ -37,4 +37,4 @@ then
>>       OPTIONS="${OPTIONS} --disable-taglib --disable-mkv"
>>   fi
>>
>> -sh "$(dirname $0)"/../../../configure ${OPTIONS} $*
>> +sh "$(dirname $0)"/../../../configure ${OPTIONS} $*
>> CFLAGS="-march=pentium2"
> Why Pentium2? I don't see why MMX is needed.
>
I'm not really sure, as j-b suggested. But without -march=pentium2 one 
gets fatal errors like

include/vlc_atomic.h:124: undefined reference to
`___sync_bool_compare_and_swap_4' when linking VLC that prevent VLC from being built.

Thanks,
		Edward Wang




More information about the vlc-devel mailing list