On 09/15/2011 08:39 AM, Jean-François Mertens wrote:

>
> PS: and as an aside, it is also not needed to mkdir tmp and ar -x, if
> you use
> -all_load libarpack.a

Try not to use -all_load on 10.6 and later, there is a method to load 
all members of selected archives there -> -force_load.

e.g.
gcc -dynamiclib -o foo.dylib -lbar -lbaz -all_load /path/to/libX.a will 
load all members of libX.a, and if libbar and libbaz happen to be static 
archives then all members of those libs also, and all members of any 
other archive that gets added by the compiler before calling the linker.

gcc -dynamiclib -o foo.dylib -lbar -lbaz 
-Wl,-force_load,/path/to/libX.a, on the other hand, will only load all 
members of libX.a.

ar x is somewhat safer in general if you want to run it on 10.5, but has 
its own issues with debug information being incorrect in the output.

Peter

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to