[Ffmpeg-devel] [PATCH] build with '--enable-gprof'
Michael Niedermayer
michaelni
Mon Dec 11 16:14:33 CET 2006
Hi
On Mon, Dec 11, 2006 at 06:16:17PM +0300, Dmitry Antipov wrote:
> 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)
> >...
> >LIBOBJFLAGS="\$(PIC)"
> >
> >so on OpenBSD for example PIC is used
>
> Hm. OpenBSD is the only system that sets
>
> LIBOBJFLAGS="\$(PIC)"
>
> 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)" ;;
> esac
> fi
> fi
>
> I believe x86_32 should be included here, just to get PIC "for x86 on all
> OSs".
rejected, PIC causes several optimization to be disabled
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
More information about the ffmpeg-devel
mailing list