diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-08-02 19:14:06 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-08-02 19:16:01 +0200 |
commit | 996421fe512c5ee65cfe2594e0764a0d03c9eb5e (patch) | |
tree | bc8873f170e601f6d4fc287678d0f788812301d0 | |
parent | 96db4ea70594b4213770929907262de503c32725 (diff) | |
download | ptxdist-996421fe512c5ee65cfe2594e0764a0d03c9eb5e.tar.gz ptxdist-996421fe512c5ee65cfe2594e0764a0d03c9eb5e.tar.xz |
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 <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/host-libtasn1.make | 3 |
1 files changed, 3 insertions, 0 deletions
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 |