Skip to content

Commit b38a6a0

Browse files
LeviticusMBjoeferner
authored andcommitted
Fix macOS build with JDK 17 & 18.
(This fixes building the package only. #515 prevents it from actually working.)
1 parent e49f6c8 commit b38a6a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

find_java_libdir.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ main () {
4949
target_arch=`uname -m`
5050
if [[ -d ${jre_dir}/${target_arch}/classic ]]; then lib_dir="${jre_dir}"/${target_arch}/classic; else lib_dir="${jre_dir}"/${target_arch}/server; fi
5151
elif [[ "${os}" == "mac" ]]; then
52-
lib_dir="${jre_dir}/jli"
52+
if [[ -d ${jre_dir}/jli ]]; then lib_dir="${jre_dir}/jli"; else lib_dir="${jre_dir}"; fi
5353
else
5454
local arch
5555
if [[ "${target_arch}" =~ (32|386) ]]; then

0 commit comments

Comments
 (0)