[ITA, RFU] libgpg-error 1.6-1

Brian Dessent brian@dessent.net
Mon Mar 10 01:13:00 GMT 2008


Gergely Budai wrote:

> I have been reviewing my packages and noticed that cygport does not strip
> the libraries located in /usr/lib.
> Do they need to be stripped too?

I don't think there's any standard practice.  Here's a bashlet you can
run to categorize the contents of your /usr/lib into either stripped,
not stripped, or import lib (where the concept of stripping doesn't
really apply since they contain no code):

$ s=0; ns=0; for F in $(find /usr/lib -name lib\*.a); do \
 od=$(objdump -h $F); case "$od" in \
   *.idata*) echo -e "$F\n\timport lib";; \
   *.stab*|*.debug_*) echo -e "$F\n\tnot stripped"; ns=$(($ns + 1));; \
   *) echo -e "$F\n\tstripped"; s=$(($s + 1));; \
 esac; done; echo -e "\ntotal stripped: $s\ntotal non-stripped: $ns"

On my system, this reports:

total stripped: 179
total non-stripped: 43

Brian



More information about the Cygwin-apps mailing list