On Jan 26, 2010, at 6:41 PM, Mike Swingler wrote: > Also, the bin tools need to have "push rpath" directives as well, so you'll > probably need to experiment with a number of different paths to find a > combination that builds a coherent JDK.
I did some experimentation and got something that builds with reasonable-looking linker options, but it still doesn't work. dtruss shows some evidence that the new rpath components are being looked at, and there are stats of libjvm.dylib, but this is what happens in the end: $ build/bsd-i586/j2re-image/bin/java -Xinternalversion Error occurred during initialization of VM Unable to load native library: dlopen(/Users/jrose/Projects/davinci/sources/build/bsd-i586/j2re-image/lib/i386/libjava.dylib, 1): Library not loaded: libjvm.dylib Referenced from: /Users/jrose/Projects/davinci/sources/build/bsd-i586/lib/i386/libverify.dylib Reason: image not found Here are my makefile changes so far (relative to a $davinci installation). It is pretty crude and needs cleanup as well as correction. http://homepage.mac.com/rose00/work/osxpaths.zip libjvm links with options including these: -Xlinker -rpath -Xlinker @loader_path/. -Xlinker -rpath -Xlinker @loader_path/.. -Xlinker -install_name -Xlinker @rpath/libjvm.dylib -o libjvm.dylib libjava links with options including these: -Xlinker -rpath -Xlinker @loader_path/. -Xlinker -install_name -Xlinker @rpath/libjava.dylib -L$build/bsd-i586/lib/i386 -dynamiclib -o $build/bsd-i586/lib/i386/libjava.dylib I'm going to look at other things now. Catch, anyone? -- John