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

Dmitry Antipov dmantipov
Mon Dec 11 16:16:17 CET 2006

Michael Niedermayer wrote:

> On Mon, Dec 11, 2006 at 03:05:58PM +0300, Dmitry Antipov wrote:
>> Michael Niedermayer wrote:
>>>> But ffmpeg compiles without '-fPIC' or '-fpic' even if '--enable-shared', 
>>>> and only
>>>> vhook compiles with PIC option(s). Is this a bug :-) ?
>>> i dont think this is true for x86 on all OSs
> [...]
>> Am I doing wrong something ?
> configure says:
> OpenBSD)
> ...
> so on OpenBSD for example PIC is used 

Hm. OpenBSD is the only system that sets


explicitly when 'configure' tries to set an OS-specific stuff.

It looks like other systems should be handled by this 'configure' fragment:

# PIC flags for shared library objects where they are needed
if test "$lshared" = "yes" ; then
     # LIBOBJFLAGS may have already been set in the OS configuration
     if test -z "$LIBOBJFLAGS" ; then
         case "$arch" in
             x86_64|ia64|alpha|sparc*) LIBOBJFLAGS="\$(PIC)" ;;

I believe x86_32 should be included here, just to get PIC "for x86 on all OSs".


More information about the ffmpeg-devel mailing list