summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-13 16:49:53 +0000
committerjlam <jlam@pkgsrc.org>2004-02-13 16:49:53 +0000
commit5dfc302c34956c3016c5574d0505789a228342ac (patch)
treee542180a119384cdf921241f916f1b33bd30a299 /mk
parente68c58400ca15fe4ec33e0ba137d52dff66b4d16 (diff)
downloadpkgsrc-5dfc302c34956c3016c5574d0505789a228342ac.tar.gz
Change "-I dir" to "-Idir" (same for -L/-R) so that the .transform.sed
script will understand these commands.
Diffstat (limited to 'mk')
-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.