[Ffmpeg-devel] Re: [PATCH] Fix compilation when using --disable-opts

Uoti Urpala uoti.urpala
Sat Mar 31 22:01:08 CEST 2007


On Sat, 2007-03-31 at 21:34 +0200, Alexis Ballier wrote:
> > > #if defined(ARCH_X86_64) || (defined(ARCH_X86_32) &&
> > > defined(CONFIG_EBX_AVAILABLE) && defined(CONFIG_EBP_AVAILABLE))
> > > #  define CONFIG_7REGS 1
> > > #endif
> > >
> > > shouldn't this also add && !defined(PIC) ?
> >
> > maybe
> 
> what I meant there was : since PIC is supposed to eat one register, do
> we really have 7 registrers when compiling with PIC ?

The assumption contained in your question - that 7 registers are assumed
with PIC - is false. If there are less than 7 registers available then
that's because ebx is reserved, and CONFIG_EBX_AVAILABLE is already
tested.

Your compilation problems might be caused by CONFIG_EBX_AVAILABLE not
being set correctly. How are you creating the nonstandard build which
uses -fPIC on x86-32? Is that hack done by the Gentoo package by
default? Is it done by setting configure flags, and if so, only --cflags
or something else?





More information about the ffmpeg-devel mailing list