mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 12:57:53 +00:00
a07693b13c
- ./configure: check for 'stat', needing to install the tools wrapper - wrapper: make it a POSIX-compliant script, restore relocatability - don't install the wrapper for symlinks -------- diffstat follows -------- /devel/gcc-4.4/configure | 1 1 0 0 + /devel/gcc-4.4/scripts/build/internals.sh | 22 16 6 0 ++++++++++++++++------ /devel/gcc-4.4/scripts/wrapper.in | 5 2 3 0 ++--- 3 files changed, 19 insertions(+), 9 deletions(-)
15 lines
322 B
Bash
15 lines
322 B
Bash
#!/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}" "$@"
|