remove gcc34
[dragonfly.git] / crypto / heimdal-0.6.3 / lib / auth / sia / make-rpath
blob2223aa00b00e7afa270e208a292992e14f150528
1 #!/bin/sh
2 # $Id: make-rpath,v 1.1 2001/07/17 15:15:31 assar Exp $
3 rlist=
4 rest=
5 while test $# -gt 0; do
6 case $1 in
7 -R|-rpath)
8 if test "$rlist"; then
9 rlist="${rlist}:$2"
10 else
11 rlist="$2"
13 shift 2
15 -R*)
16 d=`echo $1 | sed 's,^-R,,'`
17 if test "$rlist"; then
18 rlist="${rlist}:${d}"
19 else
20 rlist="${d}"
22 shift
25 rest="${rest} $1"
26 shift
28 esac
29 done
30 rpath=
31 if test "$rlist"; then
32 rpath="-rpath $rlist "
34 echo "${rpath}${rest}"