[MPlayer-dev-eng] libdha vs PIC

Diego Biurrun diego at biurrun.de
Mon Oct 16 10:13:05 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?

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.

Diego



More information about the MPlayer-dev-eng mailing list