diff options
author | Robert Nagy <robert@openbsd.org> | 2010-11-15 16:00:48 +0100 |
---|---|---|
committer | Robert Nagy <robert@openbsd.org> | 2010-11-15 16:00:48 +0100 |
commit | 580cc3fdf315ad7a782c91a2e0a4e5d296f4e5c3 (patch) | |
tree | c0aad7907217ef9e98c9b439369b3a7a03f0b2b4 /desktop/scripts/soffice.sh | |
parent | 7239bb5a657fe5a5aa065256762ad254f2f6a715 (diff) |
Set LD_LIBRARY_PATH+JAVA_HOME on OpenBSD.
OpenBSD does not support $ORIGIN so we have to set LD_LIBRARY_PATH
in order to find the shared libs of libreoffice.
We also set JAVA_HOME here because it's path is outside of the
default ones.
NetBSD can probably use this too.
Diffstat (limited to 'desktop/scripts/soffice.sh')
-rw-r--r-- | desktop/scripts/soffice.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/desktop/scripts/soffice.sh b/desktop/scripts/soffice.sh index d6d316d05c0e..427f6414605e 100644 --- a/desktop/scripts/soffice.sh +++ b/desktop/scripts/soffice.sh @@ -62,6 +62,20 @@ fi sd_binary=`basename "$0" | sed 's/libreoffice/soffice/g'`.bin +# this is a temporary hack until we can live with the default search paths +case "`uname -s`" in +OpenBSD) + 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}} + JAVA_HOME=$(javaPathHelper -h libreoffice-java 2> /dev/null) + export LD_LIBRARY_PATH + if [ -n "${JAVA_HOME}" ]; then + export JAVA_HOME + fi + ;; +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 $@ |