scripts/wrapper.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jun 02 21:01:19 2009 +0000 (2009-06-02)
branchgcc-4.4
changeset 1402 146c62142e1b
parent 1401 604c5c80e24a
child 1434 7e7290acccc1
permissions -rw-r--r--
/devel/gcc-4.4:
- ./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(-)
yann@1402
     1
#!/bin/sh
yann@1401
     2
yann@1401
     3
dirname="$(dirname "${0}")"
yann@1401
     4
basename="$(basename "${0}")"
yann@1401
     5
yann@1401
     6
ld_lib_path="$(dirname "${dirname}")/lib"
yann@1401
     7
yann@1401
     8
case ":${LD_LIBRARY_PATH}:" in
yann@1401
     9
    *":${ld_lib_path}:"*)   ;;
yann@1401
    10
    *)  LD_LIBRARY_PATH="${ld_lib_path}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}";;
yann@1401
    11
esac
yann@1401
    12
yann@1401
    13
export LD_LIBRARY_PATH
yann@1402
    14
exec "${dirname}/.${basename}" "$@"