[FFmpeg-devel] Hacks on FATE
Michael Kostylev
michael.kostylev
Fri Oct 23 21:18:47 CEST 2009
On Wed Sep 30 12:28:55 2009
Michael Kostylev wrote:
>>>>>> Some of the FATE configurations are using decidedly non-standard
>>>>>> configure options. Some even apply PATCHES to the code. This is not
>>>>>> the way we want it to be.
>>>>>>
>>>>>> [...]
>>>>>
>>>>> There is a new FATE machine with new hacks: OpenSolaris on x86_64.
>>>>>
>>>>> http://fate.multimedia.cx/index.php?machine=24
>>>>> http://fate.multimedia.cx/index.php?build_record=115807
>>>>>
>>>>> configure --arch=amd64 --cc='ccache gcc-4.4 -m64' --extra-cflags=-Wa,--divide
>>>>> --extra-libs=/usr/lib/64/values-xpg6.o --disable-debug --enable-shared
>>>>> --enable-gpl --enable-postproc --enable-avfilter --enable-avfilter-lavf
>>>>> --enable-zlib && /usr/gnu/bin/sed -i -e 's/^\(SHFLAGS\)=\(.*\)/\1=-mimpure-text \2/' config.mak
>>>>
>>>> Another question: What is this '-mimpure-text' hack about?
>>>
>>> http://gcc.gnu.org/onlinedocs/gcc-4.4.1/gcc/SPARC-Options.html
>>> /mimpure-text
>>>
>>> I don't know what is the reason for the `-z text' diversion,
>>> even the Sun ld doesn't use `-z text' by default.
>>
>> So we should add it in configure.
>
> Ok.
>
> --- ./configure.orig
> +++ ./configure
> @@ -1871,6 +1871,7 @@
> sunos)
> FFSERVERLDFLAGS=""
> SHFLAGS='-shared -Wl,-h,$$(@F)'
> + enabled x86 && check_ldflags -mimpure-text && SHFLAGS="-mimpure-text $SHFLAGS"
> network_extralibs="-lsocket -lnsl"
> add_cppflags -D__EXTENSIONS__
> ;;
Ping.
Michael
More information about the ffmpeg-devel
mailing list