# LDFLAGS => '-Wall' will create LDFLAGS+='-Wall'
makefile_add =>{
# Show all warnings and errors
- # Some platforms need the c99 setting enabled
- CFLAGS => '-std=c99 -Wall -Wno-parentheses -Werror=format-security',
+ CFLAGS => '-Wall -Wno-parentheses -Werror=format-security',
# Or enable debugging flags
#CFLAGS => '-g -Wall',
#LFLAGS => '-g',
# $conf{makefile_set}{SUPPORT_DANE} = '';
#}
+# Some platforms need the c99 setting enabled for 4.next, which starts using more c99 syntax
+if ($branch eq '4.next')
+{
+ $conf{makefile_add}{CFLAGS} .= ' -std=c99';
+}
+
+
1;