The R Project SVN R

Rev

Rev 11177 | Rev 11204 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#!/bin/sh
#
# ${R_HOME}/bin/LINK

args=
largs=
Largs=
rpath=

while test -n "${1}"; do
  case "${1}" in
    -avoid-version)
      ;;
    -rpath)
      rpath="${rpath} ${2}"
      shift
      ;;
    -l*)
      largs="${largs} ${1}"
      ;;
    -L*)
      Largs="${Largs} ${1}"
      arg=`echo "${1}" | sed -e 's/^-L//'`
      rpath="${rpath}:${arg}"
      ;;
    *)
      args="${args} ${1}"
      ;;
  esac
  shift
done

LD_RUN_PATH="${rpath}"
export LD_RUN_PATH
exec ${args} ${Largs} ${largs}