summaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd24/patches/patch-am
blob: d7500fdf2c4de2467c51422ccc3db0eca6f16487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$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;