summaryrefslogtreecommitdiff
path: root/hints/dec_osf.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-02-27 01:11:13 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-27 01:11:13 +0000
commitc9436a12b1ee8d5e32d19b5870c63a8435afed9d (patch)
tree0d997be43c2b819a09f5db28715ab328e73a3cd8 /hints/dec_osf.sh
parent1059054db273fce406f731966b935f417b38dbd5 (diff)
downloadperl-c9436a12b1ee8d5e32d19b5870c63a8435afed9d.tar.gz
Only modify LD_LIBRARY_PATH in case there are directories.
p4raw-id: //depot/perl@14891
Diffstat (limited to 'hints/dec_osf.sh')
-rw-r--r--hints/dec_osf.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh
index 87d3933e48..1e64da1f3e 100644
--- a/hints/dec_osf.sh
+++ b/hints/dec_osf.sh
@@ -322,11 +322,13 @@ case "$loclibpth" in
if test -n "`ls $p/libdb.so* 2>/dev/null`"; then
needusrshlib=yes
fi
- echo "Appending $p to LD_LIBRARY_PATH." >& 4
- case "$LD_LIBRARY_PATH" in
- '') LD_LIBRARY_PATH=$p ;;
- *) LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$p ;;
- esac
+ if test -d $p; then
+ echo "Appending $p to LD_LIBRARY_PATH." >& 4
+ case "$LD_LIBRARY_PATH" in
+ '') LD_LIBRARY_PATH=$p ;;
+ *) LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$p ;;
+ esac
+ fi
done
echo "LD_LIBRARY_PATH is now $LD_LIBRARY_PATH." >& 4
# This is evil but I can't think of a nice workaround: