summaryrefslogtreecommitdiff
path: root/padmin/source
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@freebsd.org>2011-02-08 21:15:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-02-08 21:15:23 +0000
commitb9bed9ad7ca4a6d26f81b9750bd0f074786e5479 (patch)
tree899dd60706683118454e5e6e62904eb48ed33b75 /padmin/source
parentb14a690506b0786083714489099bc995a464df97 (diff)
LD_LIBRARY_PATH fix for freebsd
Diffstat (limited to 'padmin/source')
-rw-r--r--padmin/source/spadmin.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/padmin/source/spadmin.sh b/padmin/source/spadmin.sh
index 3d8aa73e846b..bf2b4ad8b7e3 100644
--- a/padmin/source/spadmin.sh
+++ b/padmin/source/spadmin.sh
@@ -43,6 +43,15 @@ fi
sd_prog=`pwd`
cd "$sd_cwd"
+case "`uname -s`" in
+ FreeBSD)
+ sd_prog1="$sd_prog/../basis-link/program"
+ sd_prog2="$sd_prog/../basis-link/ure-link/lib"
+ LD_LIBRARY_PATH=$sd_prog1:$sd_prog2${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
+ export LD_LIBRARY_PATH
+ ;;
+esac
+
#collect all bootstrap variables specified on the command line
#so that they can be passed as arguments to javaldx later on
for arg in $@