On 04/01/2010 12:42 AM, David Lowe wrote:
> On 31 Mar, 2010, at 4:14 PM, Peter O'Gorman wrote:
> 
>> On 03/31/2010 05:55 PM, David Lowe wrote:
>>
>>>     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
> 
>       Okeh, lemme see if i'm following correctly.  I want to add 
> '-dead_strip_dylibs' as an argument to the linker.  I *think* the way to do 
> this is by adding to 'LDFLAGS', presumably by typing 'CTRL-Z' as soon as 
> configure is complete?  If not, will you please point me in the direction of 
> a web page or other resource where i can study this?

[re-added fink-devel, please try to keep the list in CC]

Well, if you want to convince yourself that all the linked libraries are
actually needed, you can try it once with LDFLAGS=-Wl,-dead_strip_dylibs
and check to see if any of the libraries were removed by looking at
before and after otool -L output, you may find this useful to satisfy
your own curiosity.

However, it is not necessary to do so, and anyway, if the "extra"
libraries are coming from pkg-config or libtool's .la files, you will
still have to BuildDepend on those packages because without them the
build would fail.

Peter




------------------------------------------------------------------------------
Download Intel® 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