This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ITA, RFU] libgpg-error 1.6-1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]