From 996421fe512c5ee65cfe2594e0764a0d03c9eb5e Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Sun, 2 Aug 2020 19:14:06 +0200 Subject: host-libtasn1: fix building with older compilers With old compilers, e.g. gcc 4.8.5 from CentOS 7, building fails with: corpus2array.c: In function 'main': corpus2array.c:123:4: error: 'for' loop initial declarations are only allowed in C99 mode corpus2array.c:123:4: note: use option -std=c99 or -std=gnu99 to compile your code Explicitly set -std=c99 to avoid this. Signed-off-by: Michael Olbrich --- rules/host-libtasn1.make | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rules/host-libtasn1.make b/rules/host-libtasn1.make index c9061091f..a3357301c 100644 --- a/rules/host-libtasn1.make +++ b/rules/host-libtasn1.make @@ -34,4 +34,7 @@ HOST_LIBTASN1_CONF_OPT := \ --disable-code-coverage \ --disable-gcc-warnings +# Needed for old compilers that default to c90 +HOST_LIBTASN1_CFLAGS := -std=c99 + # vim: syntax=make -- cgit v1.2.3