scripts/wrapper.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jun 23 22:52:14 2009 +0200 (2009-06-23)
changeset 1420 0e49e6eddac4
parent 1401 604c5c80e24a
child 1434 7e7290acccc1
permissions -rw-r--r--
Fix creating the .../lib/ directory structure in the non-sysroot case

The symbol link that is created in the sysroot directory only needs
to be made when the cross compiler is build with the sysroot option

Signed-off-by: Bart van der Meulen <bartvdrmeulen@gmail.com>
     1 #!/bin/sh
     2 
     3 dirname="$(dirname "${0}")"
     4 basename="$(basename "${0}")"
     5 
     6 ld_lib_path="$(dirname "${dirname}")/lib"
     7 
     8 case ":${LD_LIBRARY_PATH}:" in
     9     *":${ld_lib_path}:"*)   ;;
    10     *)  LD_LIBRARY_PATH="${ld_lib_path}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}";;
    11 esac
    12 
    13 export LD_LIBRARY_PATH
    14 exec "${dirname}/.${basename}" "$@"