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

Måns Rullgård mans
Sun Apr 1 16:00:22 CEST 2007


"Alexis Ballier" <alexis.ballier at gmail.com> writes:

>> If I run FFmpeg configure (without patch) with --extra-cflags=-fpic then
>> CONFIG_EBX_AVAILABLE is not set. Tested with gcc 4.1.2 from Debian
>> unstable and 4.2 prerelease from experimental.
>
> confirmed here also on 32 bits, but not on 64.
> [the compiler failing with a different output doesnt mean the reason
> is different : enabling asm that gcc doesnt want to build with pic; as
> far as my understanding goes this apparently can be fixed on x86_64
> but this doesnt seem to be possible on 32]
>
> and why do you want to add fPIC to cflags ? it's needed only for
> shared libs (here I really mean needed : I'm talking about e.g.
> x86_64).
> Wouldn't that be better to build non pic static libs and pic shared
> libs when --enable-shared is given ? (see attachment)

The patch is wrong.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list