Advice on PIC issue

Henrique de Moraes Holschuh hmh at debian.org
Wed Nov 8 16:03:49 CET 2006


On Wed, 08 Nov 2006, Fabian Fagerholm wrote:
> I believe the issue can be fixed by simply calling configure with
> --with-pic. However, I don't know if this has any unwanted side-effects
> since it will make the static objects position-independent for all
> architectures.

Usually, linking libs with non-pic code is a bug in the makefile, especially
when libtool is being used (libtool should be handling this fine, and if we
relibtoolize, it *really* should be handling it fine).  When using libtool +
automake (1.9 or 1.10), it gets especially difficult to get it wrong :-)

For sasl, everything BUT the helper programs (i.e. all the stuff that ends
up in the libs plus all the stuff that ends up as modules) needs to be built
in PIC mode.

> Should I go ahead and use --with-pic in debian/rules?

It should not do any harm.  But it is also likely to not fix the issue, as
the build system should already be doing --with-pic for almost everything,
and it isn't :-(

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



More information about the Pkg-cyrus-sasl2-debian-devel mailing list