[Ffmpeg-devel] [PATCH] build with '--enable-gprof'

dmantipov dmantipov
Sat Dec 9 07:05:57 CET 2006


Michael Niedermayer wrote:

>> Index: libavcodec/cabac.h
>> ===================================================================
>> --- libavcodec/cabac.h	(revision 7245)
>> +++ libavcodec/cabac.h	(working copy)
>> @@ -376,7 +376,7 @@
>>  #define BYTE        "16"
>>  #define BYTEEND     "20"
>>  #endif
>> -#if defined(ARCH_X86) && !(defined(PIC) && defined(__GNUC__))
>> +#if defined(ARCH_X86) && !defined(CONFIG_EBP_IS_SPECIAL)
>
>this isnt correct its rather
>
>#if defined(ARCH_X86) && !defined(CONFIG_EBP_IS_SPECIAL) && !defined(CONFIG_EBX_IS_SPECIAL)
>
>as for PIC code with -fomit-frame-pointer EBP isnt special and the asm code
>in configure will compile and work correctly still gcc will fail compiling
>the asm above as EBX is special for gcc in the PIC case, 


But ffmpeg compiles without '-fPIC' or '-fpic' even if '--enable-shared', and only
vhook compiles with PIC option(s). Is this a bug :-) ?

Dmitry




More information about the ffmpeg-devel mailing list