[LTP] [RFC PATCH 1/1] config.mk: Explicitly set used C and C++ standard

Petr Vorel pvorel@suse.cz
Fri Apr 14 14:23:12 CEST 2017


Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
IMHO If we really want to require old standard, we should explicitly say which one.
I suppose passing a flag is appropriate way than to use c89 as CC variable.
---
 include/mk/config.mk.default | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/mk/config.mk.default b/include/mk/config.mk.default
index dff3479db..ff67486a1 100644
--- a/include/mk/config.mk.default
+++ b/include/mk/config.mk.default
@@ -54,8 +54,8 @@ bindir			:= ${exec_prefix}/bin
 libdir			:= ${exec_prefix}/lib
 mandir			:= ${datarootdir}/man
 
-CPPFLAGS		:=
-CFLAGS			:= -g -O2
+CPPFLAGS		:= -std=c++98
+CFLAGS			:= -g -O2 -std=gnu89
 LDLIBS			:=
 LDFLAGS			:=
 
-- 
2.11.0



More information about the ltp mailing list