Skip to content

Commit

Permalink
Bug 1145: Fix cc1 NativeLibrary: Add current working directory + nati…
Browse files Browse the repository at this point in the history
…ves/os-arch/ + library names

Fixes Bug 1145 cc1 when using an unpacked fat-jar
  • Loading branch information
xranby committed Aug 12, 2015
1 parent 961e021 commit bf4d878
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/java/com/jogamp/common/os/NativeLibrary.java
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,10 @@ public String run() {
});
addPaths(userDir, baseNames, paths);

// Add current working directory + natives/os-arch/ + library names
// to handle Bug 1145 cc1 using an unpacked fat-jar
addPaths(userDir+File.separator+"natives"+File.separator+PlatformPropsImpl.os_and_arch+File.separator, baseNames, paths);

if (!searchSystemPathFirst) {
// Add just the library names to use the OS's search algorithm
for (int i = 0; i < baseNames.length; i++) {
Expand Down

0 comments on commit bf4d878

Please sign in to comment.