use make-rpath to create rpath argument to ld
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10345 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
34
lib/auth/sia/make-rpath
Executable file
34
lib/auth/sia/make-rpath
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
# $Id$
|
||||
rlist=
|
||||
rest=
|
||||
while test $# -gt 0; do
|
||||
case $1 in
|
||||
-R|-rpath)
|
||||
if test "$rlist"; then
|
||||
rlist="${rlist}:$2"
|
||||
else
|
||||
rlist="$2"
|
||||
fi
|
||||
shift 2
|
||||
;;
|
||||
-R*)
|
||||
d=`echo $1 | sed 's,^-R,,'`
|
||||
if test "$rlist"; then
|
||||
rlist="${rlist}:${d}"
|
||||
else
|
||||
rlist="${d}"
|
||||
fi
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
rest="${rest} $1"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
rpath=
|
||||
if test "$rlist"; then
|
||||
rpath="-rpath $rlist "
|
||||
fi
|
||||
echo "${rpath}${rest}"
|
Reference in New Issue
Block a user