mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
20 lines
464 B
Plaintext
20 lines
464 B
Plaintext
$NetBSD: patch-am,v 1.1.1.1 2010/10/30 12:12:35 obache Exp $
|
|
|
|
--- tools/config2header.orig 2010-10-19 03:08:28.000000000 +0000
|
|
+++ tools/config2header
|
|
@@ -79,6 +79,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;
|
|
|