diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-07-23 11:58:49 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-07-23 11:58:49 +0000 |
commit | 5cf1d1f16c1401220ecaa7b3127343c7c6c095d2 (patch) | |
tree | 54b9a35ecbdce7afc4cae82642d6de2a4a7e0d11 /jpl | |
parent | c1f7b11a6702e2397d89f7692c76fed567098176 (diff) | |
download | perl-5cf1d1f16c1401220ecaa7b3127343c7c6c095d2.tar.gz |
Introduce $Config{ldlibpthname} which contains
the name of the environment variable holding the
dynamic library search path, often LD_LIBRARY_PATH.
Use this new feature all over.
Also removed remnants of admonition "add LD_LIBRARY_PATH
before running make" because Makefile.SH does this for you.
p4raw-id: //depot/cfgperl@3725
Diffstat (limited to 'jpl')
-rw-r--r-- | jpl/JNI/JNI.pm | 2 | ||||
-rwxr-xr-x | jpl/install-jpl | 16 |
2 files changed, 12 insertions, 6 deletions
diff --git a/jpl/JNI/JNI.pm b/jpl/JNI/JNI.pm index 455a130d9f..82bedf9c62 100644 --- a/jpl/JNI/JNI.pm +++ b/jpl/JNI/JNI.pm @@ -229,7 +229,7 @@ if (not $JPL::_env_) { $ENV{THREADS_TYPE} ||= "green_threads"; $JAVALIB = "$ENV{JAVA_HOME}/lib/$arch/$ENV{THREADS_TYPE}"; - $ENV{LD_LIBRARY_PATH} .= ":$JAVALIB"; + $ENV{$Config{ldlibpthname}":$JAVALIB"; $JVM = GetJavaVM("$JAVALIB/libjava.so",@JVM_ARGS); } diff --git a/jpl/install-jpl b/jpl/install-jpl index 546ae91cc1..c1ef0b4e12 100755 --- a/jpl/install-jpl +++ b/jpl/install-jpl @@ -187,8 +187,14 @@ archname=`$JPLPERL -MConfig -e 'print $Config{archname}'` CLASSPATH=".:$JPL_HOME/lib${CLASSPATH:+:$CLASSPATH}" export CLASSPATH -LD_LIBRARY_PATH=".:$JPL_HOME/lib/$archname:$archlib/CORE${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" -export LD_LIBRARY_PATH +ldlibpthname=`$JPLPERL -MConfig -e 'print $Config{ldlibpthname}'` +case "$ldlibpthname" in +'') ldlibpthname=LD_LIBRARY_PATH ;; +esac +eval "ldlibpth=\$$ldlibpthname" + +$ldlibpthname=".:$JPL_HOME/lib/$archname:$archlib/CORE$ldlibpth" +export $ldlibpthname PERL5LIB="$JPL_HOME/perl${PERL5LIB:+:$PERL5LIB}" export PERL5LIB @@ -205,13 +211,13 @@ case "$1" in \$ENV{JPL_HOME} = '$JPL_HOME'; \$ENV{JPLPERL} = '$JPLPERL'; \$ENV{CLASSPATH} = '$CLASSPATH'; -\$ENV{LD_LIBRARY_PATH} = '$LD_LIBRARY_PATH'; +\$ENV{$ldlibpthname} = '$ldlibpth'; \$ENV{PERL5LIB} = '$PERL5LIB'; END ;; -sh) cat <<END - PATH='$PATH';export PATH;JAVA_HOME='$JAVA_HOME';export JAVA_HOME;JPL_HOME='$JPL_HOME';export JPL_HOME;JPLPERL='$JPLPERL';export JPLPERL;CLASSPATH='$CLASSPATH';export CLASSPATH;LD_LIBRARY_PATH='$LD_LIBRARY_PATH';export LD_LIBRARY_PATH;PERL5LIB='$PERL5LIB';export PERL5LIB + PATH='$PATH';export PATH;JAVA_HOME='$JAVA_HOME';export JAVA_HOME;JPL_HOME='$JPL_HOME';export JPL_HOME;JPLPERL='$JPLPERL';export JPLPERL;CLASSPATH='$CLASSPATH';export CLASSPATH;$ldlibpthname='$ldlibpth';export $ldlibpthname;PERL5LIB='$PERL5LIB';export PERL5LIB END ;; -csh) @@ -221,7 +227,7 @@ setenv JAVA_HOME '$JAVA_HOME'; setenv JPL_HOME '$JPL_HOME'; setenv JPLPERL '$JPLPERL'; setenv CLASSPATH '$CLASSPATH'; -setenv LD_LIBRARY_PATH '$LD_LIBRARY_PATH'; +setenv $ldlibpthname '$ldlibpth'; setenv PERL5LIB '$PERL5LIB'; END ;; |