[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiling libbam.a from libbam-dev with -fPIC?

On Sun, Aug 30, 2009 at 11:56:58AM +0900, Charles Plessy wrote:
> as per Policy § 10.2, I would like to know if everybody agrees if I change the
> libbam-dev package to compile libbam.a with -fPIC.  Without this it is not
> possible to compile on amd64 the Bio::SamTools Perl library which I am
> packaging (http://bugs.debian.org/543488). This is documented in the Perl
> library’s README and I confirmed it on my amd64 computer.
> http://cpansearch.perl.org/src/LDS/Bio-SamTools-1.03/README

What are the reasons for not shipping a shared library?  That's always
preferred over use of -fPIC for static libs, so we should examine the
reasons for this first.

> If I understood well, only libbam.a and not the other compiled programs should
> get -fPIC. I would be happy if somebody could indicate me an example of a
> package that handle this well. (In private if it is too trivial ; let's all
> cooperate to reduce the traffic on this list).

I don't have any examples of handling this "well" - having to fPIC-enable
your libraries is always a suboptimal choice. :)

Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek@ubuntu.com                                     vorlon@debian.org

Attachment: signature.asc
Description: Digital signature

Reply to: