On 03/31/2010 05:55 PM, David Lowe wrote:
> On 31 Mar, 2010, at 12:33 PM, Hanspeter Niederstrasser wrote:
> 
>> In case you didn't know, otool -L <FOO> is useful to find out what's 
>> being linked to by a binary, and dpkg -S <BAR> is useful to figure out 
>> what package provides a file (such as a dylib from the otool -L output).
> 
>       With me being a beginner at this, can it ever be the case that a 
> package got linked in due to poor configuration but is never actually used?
> 

Yes, it can, and often is. However, if it is linked then it is required
at runtime, so you'll still need that Depends: line.

If you want to go through removing those -l that are not really
required, you certainly can, there is also a linker option that may
help:  -dead_strip_dylibs

Peter


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to