|
From: Andy B. <aba...@ca...> - 2004-04-21 15:58:31
|
"The ldd command is not available in Mac OS X; however, you can use the command otool -L to get the same functionality that ldd does." - http://developer.apple.com/technotes/tn2002/tn2071.html Here's the results for the Mac OS X files: > % otool -L bin/wrapper > bin/wrapper: > /usr/lib/libcrypto.0.9.dylib (compatibility version 0.9.0, > current version 0.9.6) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, > current version 63.0.0) > % otool -L lib/libwrapper.jnilib > lib/libwrapper.jnilib: > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, > current version 63.0.0) > I'm not an expert, but that appears to me to indicate that the Mac OS X files are not statically linked, so no change should be required for the Mac version. Cheers, ~Andy On Apr 21, 2004, at 10:25 AM, Leif Mortenson wrote: > Andreas, > Thanks, I modified both the Linux and Solaris versions so that they > now dynamically > link their libraries. Tested it with ldd. This will be in 3.1.1 > > Cheers, > Leif > > Andreas Wendt wrote: > >> Leif, >> >> a patch is very simple. You should simply replace the occurance of >> "ld" with "$(COMPILE)" in the Makefile.linux. It is always better to >> link also with gcc (it calls ld with the proper options) when using >> it for compilation. >> >> A quite good overview of tools and its options for creating libraries >> on a variety of platforms is here: >> http://www.fortran-2000.com/ArnaudRecipes/sharedlib.html. >> >> Cheers, >> Andreas |