[FFmpeg-devel] [PATCH] Disable symbol versioning on some BSDs

Vladimir Pantelic vladoman
Sun Jan 23 23:54:37 CET 2011


On 01/23/2011 10:47 PM, Reinhard Tartler wrote:
> On Sun, Jan 23, 2011 at 21:49:18 (CET), Mans Rullgard wrote:
> 
>> Dragonfly, NetBSD, and OpenBSD do not support symbol versioning
>> although our link test passes.  Disable it explicitly for these
>> systems.
>>
>> Signed-off-by: Mans Rullgard <mans at mansr.com>
>> ---
>>  configure |    8 +++++++-
>>  1 files changed, 7 insertions(+), 1 deletions(-)
>>
>> diff --git a/configure b/configure
>> index 63eadca..4c24152 100755
>> --- a/configure
>> +++ b/configure
>> @@ -2306,6 +2306,7 @@ case $target_os in
>>          nm_opts='-P -g'
>>          ;;
>>      netbsd)
>> +        disable symver
>>          oss_indev_extralibs="-lossaudio"
>>          oss_outdev_extralibs="-lossaudio"
>>          add_cppflags -D_XOPEN_SOURCE=600
>> @@ -2318,11 +2319,16 @@ case $target_os in
>>          # (simply quits with exit-code 1, no crash, no output).
>>          # Thus explicitly enable PIC here.
>>          enable pic
>> +        disable symver
>>          SHFLAGS='-shared'
>>          oss_indev_extralibs="-lossaudio"
>>          oss_outdev_extralibs="-lossaudio"
>>          ;;
>> -    freebsd|dragonfly)
>> +    dragonfly)
>> +        enable malloc_aligned
>> +        disable symver
>> +        ;;
>> +    freebsd)
>>          enable malloc_aligned
>>          ;;
>>      bsd/os)
> 
> Looks OK to me.
> 
> remark: Do we have some whay to detect builds for android? In that case
> it should be added here as well.

I also had to disable it for my uclibc build,
no idea if that can be detected...






More information about the ffmpeg-devel mailing list