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

Alexis Ballier alexis.ballier
Sun Apr 1 15:27:08 CEST 2007

> 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.
Wouldn't that be better to build non pic static libs and pic shared
libs when --enable-shared is given ? (see attachment)

Alexis Ballier.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg_dont_build_pic_static_libs.patch
Type: text/x-patch
Size: 1025 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070401/eb2a54c6/attachment.bin>

More information about the ffmpeg-devel mailing list