summaryrefslogtreecommitdiff
path: root/transex3
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2009-03-06 10:14:02 +0000
committerOliver Bolte <obo@openoffice.org>2009-03-06 10:14:02 +0000
commit246783e544ebce6bb68a2e7a860e10afabb87d4f (patch)
tree52930caeaffdbefcb3312be3d8b96e4c592ea824 /transex3
parent659af2052b0471ff4507f1742a4f0c0681d66e8e (diff)
#i99741# fix for LD_LIBRARY_PATH
Diffstat (limited to 'transex3')
-rwxr-xr-xtransex3/scripts/localize9
1 files changed, 9 insertions, 0 deletions
diff --git a/transex3/scripts/localize b/transex3/scripts/localize
index 4c366d026ca4..74a75ecc3aee 100755
--- a/transex3/scripts/localize
+++ b/transex3/scripts/localize
@@ -3,6 +3,15 @@ if [ x${SOLARENV}x = xx ]; then
echo No environment found, please use 'setsolar'
exit 1
fi
+
+# localize.pl calls localize_sl in solver bin directory which depends on dynamic
+# libraries in solver lib directory but has no correct RPATH (or equivalent):
+if [ "${OS?}" = MACOSX ]; then
+ export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH+${DYLD_LIBRARY_PATH}:}${SOLARVERSION?}/${INPATH?}/lib${UPDMINOREXT}
+else
+ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}${SOLARVERSION?}/${INPATH?}/lib${UPDMINOREXT}
+fi
+
if [ x${SOLARVER}x = xx -o x${UPDMINOR}x = xx ]; then
exec perl -w $SOLARVERSION/$INPATH/bin/localize.pl "$@"
else