crosstool-ng/scripts/wrapper.in

15 lines
322 B
Plaintext
Raw Normal View History

#!/bin/sh
dirname="$(dirname "${0}")"
basename="$(basename "${0}")"
ld_lib_path="$(dirname "${dirname}")/lib"
case ":${LD_LIBRARY_PATH}:" in
*":${ld_lib_path}:"*) ;;
*) LD_LIBRARY_PATH="${ld_lib_path}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}";;
esac
export LD_LIBRARY_PATH
exec "${dirname}/.${basename}" "$@"