summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/buildlink3/marshall10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/buildlink3/marshall b/mk/buildlink3/marshall
index 3af3040ac30..27c8957a0ab 100644
--- a/mk/buildlink3/marshall
+++ b/mk/buildlink3/marshall
@@ -1,4 +1,4 @@
-# $NetBSD: marshall,v 1.8 2004/02/09 04:35:12 jlam Exp $
+# $NetBSD: marshall,v 1.9 2004/02/13 16:49:53 jlam Exp $
#
# Handle cases where multiple consecutive arguments must be processed
# together, either by merging the arguments or "skipping" the extra
@@ -6,6 +6,14 @@
#
case $arg in
#
+# If we see "-I dir" (or -L/-R), we convert it to "-Idir" so that it may be
+# transformed correctly.
+#
+-[ILR])
+ arg="$arg$1"
+ shift
+ ;;
+#
# 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.