[FFmpeg-devel] Hacks on FATE
Michael Kostylev
michael.kostylev
Sat Oct 24 17:22:53 CEST 2009
On Sat Oct 24 03:05:07 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.
>>>
>>> Michael
>>>
>>> --- ./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__
>>> ;;
>>
>> Is there any chance that flag might not be available?
>> check_ldflags automatically adds the flags to LDFLAGS, which is used
>> everywhere, so if you do that, adding it to SHFLAGS is not necessary.
>> It might break something else though.
>
> Oh, yes, -mimpure-text in LDFLAGS would break static build. So, if no one
> cares about SunStudio, the solution is simple.
Attached.
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avoid_z-text-diversion_on_sunos-x86.diff
Type: text/x-diff
Size: 292 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091024/33d294de/attachment.diff>
More information about the ffmpeg-devel
mailing list