Description of problem:
Perl's ccflags do not include a -Wformat option. Attempting to compile Vim with Perl support I ran in to this bug: https://github.com/vim/vim/issues/2068
How reproducible:
Easily
Steps to Reproduce:
1. Run: perl -V:ccflags
2. Note the output includes "-Werror=format-security" but no corresponding -Wformat
Actual results:
bakers@yellow(~/github/vim)
:perl -V:ccflags
ccflags='-D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64';
Expected results:
Some type of -Wformat would be included
Additional info:
Vim calls ExtUtils::Embed to get the cflags and it is also incorrect (I assume they're closely related).
bakers@yellow(~/github/vim)
:perl -Mlib=src/ -MExtUtils::Embed -e 'ccflags;perl_inc;print"\n"'
-D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE