On 15 Sep 2011, at 14:03, Alexander Hansen wrote: > > What's the best way to avoid dynamic lookup, given that the dylib is > generated via: > > ( mkdir tmp ) > ( cd tmp; ar -x /sw/src/fink.build/arpack-96patched-5/ARPACK/ > libarpack.a ) > ( /sw/bin/gfortran-fsf-4.6 -O -fPIC -fno-common -dynamiclib > -Wl,-undefined,dynamic_lookup -install_name /sw/lib/libarpack.0.dylib > -compatibility_version 1.0.0 -current_version 1.0.0 tmp/*.o -o > /sw/src/fink.build/arpack-96patched-5/ARPACK/libarpack.dylib )
Avoid -Wl,-undefined,dynamic_lookup (and optionally replace -fno-common by -single_module), and add, according to the variant, either -framework Accelerate or -L%p/lib -lf77blas (or -llapack -lf77blas _ don't remember the exact set of symbols to be looked up). [It is harmless to add superfluous libs, if you also use something like if [ `uname -r | cut -f1 -d.` -ge 9 ]; then LDFLAGS="-Wl,- dead_strip_dylibs"; else LDFLAGS=""; fi ] JF PS: and as an aside, it is also not needed to mkdir tmp and ar -x, if you use -all_load libarpack.a ------------------------------------------------------------------------------ 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