On Oct 25, 2007, at 1:37 PM, Andi Vajda wrote:
On Thu, 25 Oct 2007, Andi Vajda wrote:
Interesting. I didn't know about -rpath. This could solve this issue.
I'm trying this now...
Indeed, by adding '-Wl,-rpath=<library_path>' to the LFLAGS in jcc/
setup.py
one does not need to set LD_LIBRARY_PATH at all anymore. Not at
build time, not at runtime.
I just tested this on Ubuntu Gutsy with Sun Java 6. Below is my
LFLAGS dict:
LFLAGS = {
'darwin': ['-framework', 'JavaVM'],
'linux2': ['-L/usr/lib/jvm/java-6-sun/jre/lib/i386', '-ljava',
'-Wl,-rpath=/usr/lib/jvm/java-6-sun/jre/lib/i386:/
usr/lib/jvm/java-6-sun/jre/lib/i386/client'],
'win32': ['/LIBPATH:o:/Java/jdk1.6.0_02/lib', 'jvm.lib']
}
Thank you for the suggestion, I'm going to update the docs as well.
Thanks for your fast investigation! I had hoped there was a clue
there, but I didn't know enough about C/Python extensions/JNI stuff
to go anywhere with it.
I can confirm that this worked perfectly for me.
Thanks again,
-phil
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev