summaryrefslogtreecommitdiff
path: root/editors/openoffice-3-devel/files/patch-i87583
blob: 17d3d37ee8e37bd2af849741940c63dfb54b9ce5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- desktop/scripts/soffice.sh	2008-03-18 22:44:45.000000000 +0900
+++ desktop/scripts/soffice.sh	2008-03-29 19:17:49.000000000 +0900
@@ -68,6 +68,23 @@
 
 sd_binary=`basename "$0"`.bin
 
+# this is a temporary hack until we can live with the default search paths
+case "`uname -s`" in
+    FreeBSD)
+        sd_prog1="$sd_prog/../basis-link/program"
+	sd_prog2="$sd_prog/../basis-link/ure-link/lib"
+	if [ $LD_LIBRARY_PATH ]; then
+    	    SYSTEM_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
+   	    export SYSTEM_LD_LIBRARY_PATH
+    	    LD_LIBRARY_PATH="$sd_prog1:$sd_prog2":$LD_LIBRARY_PATH
+	else
+    	    LD_LIBRARY_PATH="$sd_prog1:$sd_prog2"
+	fi
+	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 $@