Skip to content

Commit 09f87ee

Browse files
ctruedenjoeferner
authored andcommitted
Use libjli, not libjvm, on macOS
See: * #90
1 parent 2e6ce52 commit 09f87ee

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

binding.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
'libraries': [
117117
'-L<(javalibdir)',
118118
'-Wl,-rpath,<(javalibdir)',
119-
'-ljvm'
119+
'-ljli'
120120
],
121121
},
122122
],

find_java_libdir.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ main () {
4545
target_arch=`uname -m`
4646
if [[ -d ${jre_dir}/${target_arch}/classic ]]; then lib_dir="${jre_dir}"/${target_arch}/classic; else lib_dir="${jre_dir}"/${target_arch}/server; fi
4747
elif [[ "${os}" == "mac" ]]; then
48-
lib_dir="${jre_dir}/server"
48+
lib_dir="${jre_dir}/jli"
4949
else
5050
local arch
5151
if [[ "${target_arch}" =~ (32|386) ]]; then

postInstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require('find-java-home')(function(err, home){
1111

1212
if(home){
1313
dll = glob.sync('**/jvm.dll', {cwd: home})[0];
14-
dylib = glob.sync('**/libjvm.dylib', {cwd: home})[0];
14+
dylib = glob.sync('**/libjli.dylib', {cwd: home})[0];
1515
soFiles = glob.sync('**/libjvm.so', {cwd: home});
1616

1717
if(soFiles.length>0)

0 commit comments

Comments
 (0)