[MPlayer-dev-eng] libdha vs PIC

Diego Biurrun diego at biurrun.de
Sun Oct 15 19:16:49 CEST 2006


On Sun, Oct 15, 2006 at 06:46:07PM +0200, Diego Biurrun wrote:
> On Sun, Oct 15, 2006 at 05:46:22PM +0200, Diego Biurrun wrote:
> > I'm checking a few Debian issues, the most important is lintian - the
> > Debian package check program - complaining that lidha contains non-PIC
> > code:
> > 
> > E: mplayer: shlib-with-non-pic-code usr/lib/libdha.so.1.0
> > 
> > However, -fPIC is part of the CFLAGS of libdha when creating object
> > files already ..  If I add -fPIC to the shared library building step
> > nothing changes and commenting out all assembler references from the
> > code does not help either.
> 
> OK, I was just being blind as a mole, OPTFLAGS contains -fno-PIC, which
> overrides -fPIC.
> 
> I'm not sure what the desired behavior is here.  Should libdha be
> compiled with PIC or not?  What about shared libraries in general?

Next question: Why is/was -fno-PIC added to the general CFLAGS?  Does it
make sense at all outside of shared libs?

Diego



More information about the MPlayer-dev-eng mailing list