summaryrefslogtreecommitdiff
path: root/mk/buildlink3/marshall
blob: b01cd8d7d6a52c1b9f7f8d13db496508afdff689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# $NetBSD: marshall,v 1.1.2.1 2003/08/28 19:12:56 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