Re: Bug#99285: would be nice to produce a -pic version of the libraries
Thu, May 31, 2001 at 03:13:56AM +0200 wrote:
> On Wed, May 30, 2001 at 02:55:55PM -0400, Adam Di Carlo wrote:
> > Would it be possible to create a new package, say, e2fslibs-pic and
> > comerr-pic ? We use these libraries in the rootdisk of the boot
> > floppies, and we are unable to reduce libext2fs.so, libe2p.so, and
> > libcom_err.so since there are no PIC archives available for them.
>
> Hm... I wonder how much we could gain - I guess most of those libs are
> used by mke2fs and e2fsck alone...
>
> Anyway, I just had a look at the Policy doc for minimal guidelines,
> but did not find anything there (or elsewhere). Is there a common way
> of doing things, or does each package make its own cooking ? Eg,
> glibc has some other files in addition to the pic lib...
After surveying other packages that have reduced libraries as well as looking
into mklibs.sh itself I made a patch for libdetect to make a pic lib. I don't
produce anything other than the *_pic.a and mklibs.sh is happy.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=85638&repeatmerged=yes
from the patch:
+ # This builds the pic library
+ ar cqv $(topdir)/src/libdetect_pic.a $(topdir)/src/*.lo
Note that the patch also includes another set of changes that rip out my poorly
though out libdetect-udeb.
That's all I did, and it worked.
David
Reply to: