#!/bin/sh

# This script overload the dynamic library path.

appname=$(basename $0 | sed s,\.sh$,,)
dirname=$(dirname $0)
case "$dirname" in
    /*)
	dirname="$PWD/$dirname"
	;;
esac
paths="$dirname/../lib/$appname"
LD_LIBRARY_PATH="$paths"
export LD_LIBRARY_PATH
DYLD_LIBRARY_PATH="$paths"
export DYLD_LIBRARY_PATH
"$dirname/$appname" $*

#!/bin/sh

# This script overload the dynamic library path.

# Resolve links referring to me.
if test -L "$0"; then
    exec $(readlink -f "$0")
fi

appname=$(basename $0 | sed s,\.sh$,,)
dirname=$(dirname $0)
case "$dirname" in
    /*)
	dirname="$PWD/$dirname"
	;;
esac
paths="$dirname/../lib/$appname"
LD_LIBRARY_PATH="$paths"
export LD_LIBRARY_PATH
DYLD_LIBRARY_PATH="$paths"
export DYLD_LIBRARY_PATH
"$dirname/$appname" $*

Resolve links pointing to wrapper script.
Resolve links pointing to wrapper script.

	* build-aux/cmake/modules/ld-wrapper-linux.sh.in: Do that.

Signed-off-by: Nicolas Despres <abdeb541ca46f1651c9cc594d44e707056e73d5d@gostai.com>
