summaryrefslogtreecommitdiff
path: root/hints/dec_osf.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-02-26 01:03:17 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-26 01:03:17 +0000
commitc93bd003f3b814a3f41e3ecac7b4aaf1167310fc (patch)
tree0fbe99f91df76eb4c3b90f8dbe29c37988f29694 /hints/dec_osf.sh
parentae716a98930f0a80b96ee5d383780578d69d0830 (diff)
downloadperl-c93bd003f3b814a3f41e3ecac7b4aaf1167310fc.tar.gz
If using -Dloclibpth=... the directories need to
be appended to LD_LIBRARY_PATH (and ickily, if those directories contain a (newer?) libdb.so, we need to prepend /usr/shlib to loclibpth). p4raw-id: //depot/perl@14879
Diffstat (limited to 'hints/dec_osf.sh')
-rw-r--r--hints/dec_osf.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh
index 1e0122f4fc..87d3933e48 100644
--- a/hints/dec_osf.sh
+++ b/hints/dec_osf.sh
@@ -313,6 +313,33 @@ case "`/usr/sbin/sizer -v`" in
*[1-4].0*) d_modfl=undef ;; # must wait till 5.0
esac
+case "$loclibpth" in
+'') ;;
+*)
+ needusrshlib=''
+ for p in $loclibpth
+ do
+ 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
+ done
+ echo "LD_LIBRARY_PATH is now $LD_LIBRARY_PATH." >& 4
+ # This is evil but I can't think of a nice workaround:
+ # the /usr/shlib/libdb.so needs to be seen first,
+ # or running Configure will fail.
+ if test -n "$needusrshlib"; then
+ echo "Prepending /usr/shlib to loclibpth." >& 4
+ loclibpth="/usr/shlib $loclibpth"
+ echo "loclibpth is now $loclibpth." >& 4
+ fi
+ ;;
+esac
+
#
# Unset temporary variables no more needed.
#