summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-01-15 09:59:29 +0000
committerjlam <jlam@pkgsrc.org>2004-01-15 09:59:29 +0000
commit528000b1eedd8d679efe87343a9fc283b58dff1d (patch)
treea777f61cc16e0aaee9c88c599d9cc79aade1f3d4 /mk
parentf410fa1585055b3bd3622148468ec787f1595794 (diff)
downloadpkgsrc-528000b1eedd8d679efe87343a9fc283b58dff1d.tar.gz
Also merge -Wl,-R -Wl,/path/to/dir into a single argument so that we can
look it up in the cache.
Diffstat (limited to 'mk')
-rw-r--r--mk/buildlink3/marshall12
1 files changed, 9 insertions, 3 deletions
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"`