$NetBSD: patch-aa,v 1.5 2005/08/15 02:20:33 rh Exp $ --- tools/config2header.orig 2004-06-23 05:02:31.000000000 +1000 +++ tools/config2header @@ -77,6 +77,14 @@ while ($#ARGV >= 0) { my $use_gcc_extension = ($CC and $CC eq 'gcc'); +# +# Skip any CC options such as -pipe +# The last two parameters are the .c and .h files +# +while ($#ARGV > 1) { + shift @ARGV; +} + die "wrong number of arguments" if ($#ARGV != 1); my ($cfile, $hfile) = @ARGV; @@ -214,7 +222,6 @@ while () { print HFILE <