java (1677:ccd5c695b739) java (1696:27cef28d0126)
1
2# Copyright (C) NGINX, Inc.
3
4
5shift
6
7NXT_JAVA_HOME=${JAVA_HOME-}
8NXT_JAR_REPO=https://repo1.maven.org/maven2/

--- 299 unchanged lines hidden (view full) ---

308#endif /* _NXT_JAVA_JARS_INCLUDED_ */
309END
310
311NXT_JAVA_LIBJVM="$NXT_JAVA_LIB_SERVER_PATH/libjvm.so"
312
313if [ "$NXT_SYSTEM" = "Darwin" ]; then
314NXT_JAVA_LIBC_DIR="/usr/lib"
315else
1
2# Copyright (C) NGINX, Inc.
3
4
5shift
6
7NXT_JAVA_HOME=${JAVA_HOME-}
8NXT_JAR_REPO=https://repo1.maven.org/maven2/

--- 299 unchanged lines hidden (view full) ---

308#endif /* _NXT_JAVA_JARS_INCLUDED_ */
309END
310
311NXT_JAVA_LIBJVM="$NXT_JAVA_LIB_SERVER_PATH/libjvm.so"
312
313if [ "$NXT_SYSTEM" = "Darwin" ]; then
314NXT_JAVA_LIBC_DIR="/usr/lib"
315else
316NXT_JAVA_LIBC_DIR=`ldd "$NXT_JAVA_LIBJVM" | grep libc.so | cut -d' ' -f3`
316NXT_JAVA_LIBC_DIR=`ldd "$NXT_JAVA_LIBJVM" | grep -F libc. | cut -d' ' -f3`
317NXT_JAVA_LIBC_DIR=`dirname $NXT_JAVA_LIBC_DIR`
318fi
319
320
321NXT_JAVA_MOUNTS_HEADER=nxt_${NXT_JAVA_MODULE}_mounts.h
322
323cat << END > $NXT_BUILD_DIR/$NXT_JAVA_MOUNTS_HEADER
324#ifndef _NXT_JAVA_MOUNTS_H_INCLUDED_

--- 317 unchanged lines hidden ---
317NXT_JAVA_LIBC_DIR=`dirname $NXT_JAVA_LIBC_DIR`
318fi
319
320
321NXT_JAVA_MOUNTS_HEADER=nxt_${NXT_JAVA_MODULE}_mounts.h
322
323cat << END > $NXT_BUILD_DIR/$NXT_JAVA_MOUNTS_HEADER
324#ifndef _NXT_JAVA_MOUNTS_H_INCLUDED_

--- 317 unchanged lines hidden ---