dbcf68f61e
As far as I know we have no intention to use that stuff. Do we ever have any idea what it means? But sure, if it turns out that we do want to, this commit will have to be reverted.
15 lines
563 B
Bash
Executable file
15 lines
563 B
Bash
Executable file
#!/bin/sh
|
|
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
|
|
else
|
|
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${SOLARVERSION?}/${INPATH?}/lib
|
|
fi
|
|
|
|
exec perl -w $SOLARVERSION/$INPATH/bin/localize.pl "$@"
|