package/safeclib: fix build with gcc 4.8

Add -std=c99 to fix the following build failure with gcc 4.8 raised
since bump to version 3.7.1 in commit
cc27267ae4:

In file included from abort_handler_s.c:35:0:
safeclib_private.h:167:18: error: anonymous variadic macros were introduced in C99 [-Werror=variadic-macros]
 #define slprintf(...) fprintf(stderr, __VA_ARGS__)
                  ^

Fixes:
 - http://autobuild.buildroot.org/results/5c3468585942879b47331e05058d25d324c8cc23

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Fabrice Fontaine 2022-02-13 12:20:25 +01:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 0319170f50
commit 63f40a109b

View File

@ -11,6 +11,7 @@ SAFECLIB_SOURCE = safeclib-$(SAFECLIB_VERSION).tar.xz
SAFECLIB_LICENSE = MIT
SAFECLIB_LICENSE_FILES = COPYING
SAFECLIB_INSTALL_STAGING = YES
SAFECLIB_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -std=c99"
# -fstack-protector-strong is used by default. Disable that so the
# BR2_SSP_* options in the toolchain wrapper are used instead
SAFECLIB_CONF_OPTS = --disable-hardening