Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add JAVA_LD_LIBRARY_PATH, which is needed by the upcoming sun-jre6.

  • Loading branch information...
commit cb215197428b425c0fe21f3fb13bc0b8ba727fff 1 parent 51171b7
tv authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 mk/java-env.mk
11 mk/java-env.mk
View
@@ -1,4 +1,4 @@
-# $NetBSD: java-env.mk,v 1.8 2006/05/16 21:25:38 rillig Exp $
+# $NetBSD: java-env.mk,v 1.9 2007/02/18 16:25:54 tv Exp $
#
# This Makefile fragment handles Java wrappers and is meant to be included
# by packages that provide a Java build-time and/or run-time environment.
@@ -9,6 +9,10 @@
# JAVA_CLASSPATH Classpath that will be prepended on all invocations
# to this implementation. Optional.
#
+# JAVA_LD_LIBRARY_PATH
+# Value to prepend to LD_LIBRARY_PATH before running
+# the real command. Optional; use *only* if necessary.
+#
# JAVA_HOME Path to the directory holding the Java implementation.
# Required.
#
@@ -32,6 +36,7 @@ JAVA_ENV_MK= # defined
JAVA_NAME?= # undefined
JAVA_HOME?= # undefined
JAVA_CLASSPATH?= # empty
+JAVA_LD_LIBRARY_PATH?= # empty
JAVA_UNLIMIT?= # empty
JAVA_WRAPPERS?= # empty
@@ -67,6 +72,10 @@ ${WRKDIR}/${w}:
@${ECHO} 'CLASSPATH=${JAVA_CLASSPATH}:$${CLASSPATH}; export CLASSPATH' \
>>${WRKDIR}/${w}
. endif
+. if !empty(JAVA_LD_LIBRARY_PATH)
+ @${ECHO} 'LD_LIBRARY_PATH=${JAVA_LD_LIBRARY_PATH}$${LD_LIBRARY_PATH:+:}$${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH' \
+ >>${WRKDIR}/${w}
+. endif
. for f in ${JAVA_UNLIMIT}
@${ECHO} '${ULIMIT_CMD_${f}}' >>${WRKDIR}/${w}
. endfor
Please sign in to comment.
Something went wrong with that request. Please try again.