Change "-I dir" to "-Idir" (same for -L/-R) so that the .transform.sed

script will understand these commands.
This commit is contained in:
jlam 2004-02-13 16:49:53 +00:00
parent e68c58400c
commit 5dfc302c34

View file

@ -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.