Thorsten Glaser
2012-Jun-07 19:55 UTC
[klibc] [PATCH] klcc --version is -V because -v is --verbose already (unbreak -v)
Signed-off-by: Thorsten Glaser <tg at mirbsd.org> --- klcc/klcc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klcc/klcc.in b/klcc/klcc.in index 43d0984..e03bf3c 100644 --- a/klcc/klcc.in +++ b/klcc/klcc.in @@ -136,7 +136,7 @@ while ( defined($a = shift(@ARGV)) ) { } else { die "$0: unknown option: $a\n"; } - } elsif ( $a =~ /^(-print|-dump|--help|--version|-v)/ ) { + } elsif ( $a =~ /^(-print|-dump|--help|--version|-V)/ ) { # These share prefixes with some other options, so put this test early! # Pseudo-operations; just pass to gcc and don't do anything else push(@ccopt, $a); -- 1.7.10
H. Peter Anvin
2012-Jun-08 04:08 UTC
[klibc] [PATCH] klcc --version is -V because -v is --verbose already (unbreak -v)
On 06/07/2012 12:55 PM, Thorsten Glaser wrote:> > Signed-off-by: Thorsten Glaser <tg at mirbsd.org> > --- > klcc/klcc.in | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/klcc/klcc.in b/klcc/klcc.in > index 43d0984..e03bf3c 100644 > --- a/klcc/klcc.in > +++ b/klcc/klcc.in > @@ -136,7 +136,7 @@ while ( defined($a = shift(@ARGV)) ) { > } else { > die "$0: unknown option: $a\n"; > } > - } elsif ( $a =~ /^(-print|-dump|--help|--version|-v)/ ) { > + } elsif ( $a =~ /^(-print|-dump|--help|--version|-V)/ ) { > # These share prefixes with some other options, so put this test early! > # Pseudo-operations; just pass to gcc and don't do anything else > push(@ccopt, $a);Doesn't work if gcc and/or configure expect it to be -v. -hpa