summaryrefslogtreecommitdiffstats
path: root/util/mkbuildinf.pl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xutil/mkbuildinf.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/mkbuildinf.pl b/util/mkbuildinf.pl
index 7b1aba054c..a892a4396f 100755
--- a/util/mkbuildinf.pl
+++ b/util/mkbuildinf.pl
@@ -9,7 +9,9 @@
use strict;
use warnings;
-my ($cflags, $platform) = @ARGV;
+my $platform = pop @ARGV;
+my $cflags = join(' ', @ARGV);
+$cflags =~ s(\\)(\\\\)g;
$cflags = "compiler: $cflags";
# Use the value of the envvar SOURCE_DATE_EPOCH, even if it's