Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368377 - java-config should support JNI related native config options and ld.so.conf pathes
Summary: java-config should support JNI related native config options and ld.so.conf p...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-22 18:00 UTC by Alexander Dubov
Modified: 2012-04-04 14:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Dubov 2011-05-22 18:00:01 UTC
When compiling JNI related applications, there's a need to access include files and libraries provided by the JRE. This is particularly problematic when using Java invocation interface, as shared libraries, such as libjvm.so, must be found by the dynamic linker.

The typical setup for Java invocation interface looks like this:
The actual library (libjvm.so) is located in $(JAVA_HOME)/jre/lib/amd64/server/ (note the arch-dependend path element incompatible with `uname -m`).
This path should also be added, together with its parent directory, to ld.so.conf, and changed when JVM is switched by java-config.

Having such functionality will help doing JNI work on gentoo system. The functionality required is essentially analogous to what pkg-config does.


Reproducible: Always