diff options
author | Sven Gothel <[email protected]> | 2015-08-18 02:15:31 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-08-18 02:15:31 +0200 |
commit | 6557eedd0f0ec98d743c762a698bb028e88a9e16 (patch) | |
tree | 6577c817b825f5b7dc749b06b9688302e9d85e06 /src/junit | |
parent | 7d4b18401ff0a1a6b72237f8c482007fbd2623dd (diff) |
Bug 1194: Reinstate system-lib search for NativeLibrary.open(..) and PlatformPropsImpl.findSysLib(..).
This patch partially reverts of commit d12e4d4ea279998b27457691038e709879dcaca6.
NativeLibrary.open(..) requires search of system libraries,
since it loads the actual 'tool library' for which we generate the JNI binding.
The 'tool library' is preferably the system wide installed version,
e.g. libGL.so etc.
PlatformPropsImpl.findSysLib(..) also requires finding system libraries
as needed for PlatformPropsImpl.queryElfFile(..), i.e. using libjava.so etc.
Only the JNI 'glue library', glueing java calls to the 'tool library',
shall not use the system wide library search since we shall only use
JogAmp provided instances here.
This patch also reinstates binary compatibility w/ prev. GlueGen JARs
since NativeLibrary.enumerateLibraryPath(..) is public.
+++
Further more 'NativeLibrary.enumerateLibraryPath(..)'
now adds OSX system framework search _before_ the user path
in case 'searchSystemPath && searchSystemPathFirst'.
Original code always added this search to the end,
which does not match the intended behavior (-> bug).
Diffstat (limited to 'src/junit')
-rw-r--r-- | src/junit/com/jogamp/common/os/TestElfReader01.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/junit/com/jogamp/common/os/TestElfReader01.java b/src/junit/com/jogamp/common/os/TestElfReader01.java index fe03728..980a17a 100644 --- a/src/junit/com/jogamp/common/os/TestElfReader01.java +++ b/src/junit/com/jogamp/common/os/TestElfReader01.java @@ -38,7 +38,7 @@ public class TestElfReader01 extends SingletonJunitCase { } static File findJVMLib(final String libName) { final ClassLoader cl = TestElfReader01.class.getClassLoader(); - final List<String> possibleLibPaths = NativeLibrary.enumerateLibraryPaths(libName, libName, libName, cl); + final List<String> possibleLibPaths = NativeLibrary.enumerateLibraryPaths(libName, libName, libName, true, cl); for(int i=0; i<possibleLibPaths.size(); i++) { final String libPath = possibleLibPaths.get(i); final File lib = new File(libPath); |