[Buildroot] [PATCH v7 3/4] BR2_FORTIFY*: toolchain wrapper limitation note
Peter Korsgaard
peter at korsgaard.com
Sat Oct 20 11:21:37 UTC 2018
>>>>> "Matt" == Matt Weber <matthew.weber at rockwellcollins.com> writes:
> A note is added to tie off the discussion on why moving _FORTIFY_SOURCE
> related flags into the toolchain wrapper doesn't currently work.
> - Currently -D_FORTIFY_SOURCE and optimizations are passed through
> CFLAGS
> - Packages like linux-tools ignore CFLAGS entirely and some
> autotools toolchain testing cases dependent on not using
> CFLAGS.
> - If FORTIFY_SOURCE is passed through the wrapper, then linux-tools
> will no longer be able to ignore it, because it's enforced at a
> lower-level and since the optimization -Os/g/1/2/3 are via CFLAGS,
> there is no optimization flag set. Therefore linux-tools will do
> all its configuration tests with FORTIFY_SOURCE forcefully enabled
> at the wrapper level, but no optimization enabled, and consequently
> tests will fail.
> Signed-off-by: Matthew Weber <matthew.weber at rockwellcollins.com>
Committed, thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list