summaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd23/patches/patch-am
blob: 299976bb357654a31e91cf2b1a6cd1e3da144d32 (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/02/11 08:27:09 obache Exp $

--- tools/config2header.orig	2009-12-02 22:50:29.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;