summaryrefslogtreecommitdiff
path: root/mk/buildlink3/marshall
blob: c59f47f1a3ebbb502c981e4b4ff9257ece12b75a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# $NetBSD: marshall,v 1.2 2003/09/02 07:00:00 jlam Exp $
#
# Merge "-Wl,--rpath -Wl,/path/to/dir" into a single argument
# "-Wl,--rpath,/path/to/dir" so that we can look it up in the cache.
#
case $arg in
-Wl,-rpath|-Wl,-rpath-link|\
-Wl,--rpath|-Wl,--rpath-link)
	nextarg=`$echo "X$1" | $Xsed -e "s|^-Wl,||g"`
	arg="$arg,$nextarg"
	shift
	;;
esac