From 528000b1eedd8d679efe87343a9fc283b58dff1d Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 15 Jan 2004 09:59:29 +0000 Subject: Also merge -Wl,-R -Wl,/path/to/dir into a single argument so that we can look it up in the cache. --- mk/buildlink3/marshall | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'mk') diff --git a/mk/buildlink3/marshall b/mk/buildlink3/marshall index 6c6e2512fb5..8405ac14cf5 100644 --- a/mk/buildlink3/marshall +++ b/mk/buildlink3/marshall @@ -1,4 +1,4 @@ -# $NetBSD: marshall,v 1.6 2003/11/25 14:44:39 jlam Exp $ +# $NetBSD: marshall,v 1.7 2004/01/15 09:59:29 jlam Exp $ # # Handle cases where multiple consecutive arguments must be processed # together, either by merging the arguments or "skipping" the extra @@ -6,9 +6,15 @@ # case $arg in # -# 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. +# Merge "-Wl,R -Wl,/path/to/dir" into a single argument +# "-Wl,R/path/to/dir" and merge "-Wl,--rpath -Wl,/path/to/dir" into +# "-Wl,--rpath,/path/to/dir" so that we can look them up in the cache. # +-Wl,-R) + nextarg=`$echo "X$1" | $Xsed -e "s|^-Wl,||g"` + arg="$arg$nextarg" + shift + ;; -Wl,-rpath|-Wl,-rpath-link|\ -Wl,--rpath|-Wl,--rpath-link) nextarg=`$echo "X$1" | $Xsed -e "s|^-Wl,||g"` -- cgit v1.2.3