The R Project SVN R

Rev

Rev 11183 | Rev 11515 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11183 Rev 11204
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# ${R_HOME}/bin/LINK
3
# ${R_HOME}/bin/LINK
4
 
4
 
5
args=
5
if test -z "${R_HOME}"; then
6
largs=
6
  echo "Fatal error: R_HOME was not set"
7
Largs=
7
  exit 1
8
rpath=
8
fi
9
 
9
 
10
while test -n "${1}"; do
-
 
11
  case "${1}" in
10
Rexeclibdir=${R_HOME}/bin
12
    -avoid-version)
-
 
13
      ;;
-
 
14
    -rpath)
-
 
15
      rpath="${rpath} ${2}"
-
 
16
      shift
-
 
17
      ;;
-
 
18
    -l*)
-
 
19
      largs="${largs} ${1}"
-
 
20
      ;;
-
 
21
    -L*)
-
 
22
      Largs="${Largs} ${1}"
-
 
23
      arg=`echo "${1}" | sed -e 's/^-L//'`
11
linkopts="-avoid-version -rpath ${Rexeclibdir}"
24
      rpath="${rpath}:${arg}"
-
 
25
      ;;
-
 
26
    *)
-
 
27
      args="${args} ${1}"
-
 
28
      ;;
-
 
29
  esac
-
 
30
  shift
-
 
31
done
-
 
32
 
12
 
-
 
13
exec ${R_HOME}/bin/libtool --mode=link ${*} ${linkopts}
-
 
14
 
33
LD_RUN_PATH="${rpath}"
15
### Local Variables: ***
34
export LD_RUN_PATH
16
### mode: sh ***
35
exec ${args} ${Largs} ${largs}
17
### sh-indentation: 2 ***
-
 
18
### End: ***