[LTP] [PATCH] config: Explicitly set gnu99
Richard Palethorpe
rpalethorpe@suse.com
Mon Nov 21 15:45:05 CET 2022
Use the GNU variant of the C99 language to stop GCC 4.8.5 defaulting
to C90.
We can't use C99 because LTP is far from compliant.
Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
Suggested-by: Jan Kara <jack@suse.com>
---
include/mk/config.mk.in | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/mk/config.mk.in b/include/mk/config.mk.in
index 674843563..22301e126 100644
--- a/include/mk/config.mk.in
+++ b/include/mk/config.mk.in
@@ -80,8 +80,10 @@ OPT_CFLAGS ?= -O2 -fno-strict-aliasing -pipe
WCFLAGS ?= -Wall -W @GCC_WARN_OLDSTYLE@
+STDCFLAGS ?= -std=gnu99
+
LDFLAGS += $(WLDFLAGS)
-CFLAGS += $(DEBUG_CFLAGS) $(OPT_CFLAGS) $(WCFLAGS)
+CFLAGS += $(DEBUG_CFLAGS) $(OPT_CFLAGS) $(WCFLAGS) $(STDCFLAGS)
LTP_CFLAGS_NOPIE := @LTP_CFLAGS_NOPIE@
--
2.38.1
More information about the ltp
mailing list