summaryrefslogtreecommitdiff
path: root/mk/buildlink3/marshall
diff options
context:
space:
mode:
Diffstat (limited to 'mk/buildlink3/marshall')
-rw-r--r--mk/buildlink3/marshall13
1 files changed, 13 insertions, 0 deletions
diff --git a/mk/buildlink3/marshall b/mk/buildlink3/marshall
new file mode 100644
index 00000000000..c59f47f1a3e
--- /dev/null
+++ b/mk/buildlink3/marshall
@@ -0,0 +1,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