[MPlayer-dev-eng] libdha vs PIC

Diego Biurrun diego at biurrun.de
Mon Oct 16 17:27:50 CEST 2006


On Mon, Oct 16, 2006 at 05:10:49PM +0200, Reimar Döffinger wrote:
> On Mon, Oct 16, 2006 at 03:03:41PM +0200, Diego Biurrun wrote:
> > On Mon, Oct 16, 2006 at 10:13:05AM +0200, Diego Biurrun wrote:
> > > If nobody objects I will just move -fPIC to the end of the CFLAGS line
> > > in libdha/Makefile so that libdha is always compiled with PIC.
> >
> > The alternative is to remove the -fno-PIC check from configure.  AFAICT
> > -fno-PIC is the default setting anyway.  Am I overlooking something?
> 
> As said on IRC it is obviously not since we got loads of bugreports,
> which were the reason for adding -fno-PIC.

Umm, the gcc docs claim otherwise:

http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Code-Gen-Options.html

It only lists the options that are not the defaults and -fPIC is there.

Andrea Menucci (Debian packager) told me he checked 4.1.1, 4.1.0, 4.0.3,
4.0.2, 4.0.1, 4.0.0, 3.4.{0,1,2,3,4,5,6}, 3.3.{1,2,3,4,5,6} and I just
checked 3.0.3 3.0.4, 3.1.1, 3.2.3, 3.2.2, 3.2.1, 3.2, 2.95.3.  I
consider this pretty convincing proof that -fno-PIC *is* the default.

The check for -fno-PIC was added as "Zeta OS support" by you.  So I
don't see what the problem will be with removing it again.  If Zeta
needs it, add a special case.

Diego



More information about the MPlayer-dev-eng mailing list