Page MenuHomeFreeBSD

build: provide a FORTIFY_SOURCE.<src file> override
ClosedPublic

Authored by kevans on Thu, Apr 30, 4:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 17, 7:46 AM
Unknown Object (File)
Sun, May 17, 6:07 AM
Unknown Object (File)
Sun, May 17, 3:22 AM
Unknown Object (File)
Thu, May 14, 10:38 AM
Unknown Object (File)
Wed, May 13, 9:38 PM
Unknown Object (File)
Tue, May 12, 11:27 AM
Unknown Object (File)
Mon, May 11, 1:47 PM
Unknown Object (File)
Mon, May 11, 1:06 PM

Details

Summary

For native files we can do more minimal fixes to avoid this large of a
hammer, but for third party files it may not be worth the effort to try
and patch them. NetBSD has the original _FORTIFY_SOURCE implementation
that ours is based on, for instance, but tests sourced from there can't
do an __ssp_real(foo) without being certain that foo actually has a
fortified definition.

This change does always define _FORTIFY_SOURCE as a result, so gate it
on CFLAGS not already containing _FORTIFY_SOURCE definitions.

PR: 294881

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable