This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add -D_FORTIFY_SOURCE=2 when applicable.
authorH.Merijn Brand - Tux <h.m.brand@xs4all.nl>
Tue, 15 Jul 2014 12:53:14 +0000 (14:53 +0200)
committerH.Merijn Brand - Tux <h.m.brand@xs4all.nl>
Tue, 15 Jul 2014 12:53:14 +0000 (14:53 +0200)
commiteb4c4ab22b6d7bceb05a70ce477cd8e07250284c
tree6e83c09e280164ba7dd8e585c413c78e566ad6e5
parentc213126d590f19b1c86683895a44a87f86902b3b
Add -D_FORTIFY_SOURCE=2 when applicable.

Added only if available (gcc 4.*) and not already there.

Not already there might be explicit via ccflags, or less explicitly
via cppsymbols: for example in OS X 10.5+ the -D_FORTIFY_SOURCE=2
is already the default with the system cc (gcc earlier, now clang).

Some Linux distros (e.g. Fedora) also have enabled it for years,
either for all user code, or for their own builds.

Backport of 1284d934d2a3f111f67da43b3004875ce4124284
Jarkko Hietaniemi <jhi@iki.fi>  2014-06-29 00:30:13

plus a bit of more consistent indenting
U/modified/Cppsym.U