Page MenuHomeFreeBSD

Allow suppression of --no-fatal-warnings.
AbandonedPublic

Authored by jonathan on Jul 22 2016, 9:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 21 2024, 2:17 PM
Unknown Object (File)
Jan 18 2024, 12:47 PM
Unknown Object (File)
Jan 1 2024, 6:40 AM
Unknown Object (File)
Aug 21 2023, 4:15 PM
Unknown Object (File)
Aug 13 2023, 12:36 AM
Unknown Object (File)
Aug 12 2023, 11:45 PM
Unknown Object (File)
May 31 2023, 2:28 PM
Unknown Object (File)
May 23 2023, 9:25 PM
Subscribers

Details

Summary

When building with an external toolchain whose linker doesn't support the
--no-fatal-warnings flag, we need a mechanism to suppress it. This mechanism
takes the form of a new make variable, LD_NO_FATAL_WARNS. If it is not set,
it defaults to --Wl,--no-fatal-warnings as now. However, it can be defined
in src.conf, at the command line, etc., to be the empty string.

Sponsored by: DARPA, AFRL

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4586
Build 4639: arc lint + arc unit

Event Timeline

jonathan retitled this revision from to Allow suppression of --no-fatal-warnings..
jonathan updated this object.
jonathan edited the test plan for this revision. (Show Details)
jonathan added reviewers: bapt, rwatson, bdrewery, brooks.

Of course, if we wanted to ignore the --no-fatal-warnings flag altogether, we could just do:

.if !defined(LD_FATAL_WARNINGS) || ${LD_FATAL_WARNINGS} != "no"
SOLINKOPTS+=        -Wl,---fatal-warnings
.endif

However, I wouldn't want to presume that we want to do that...

This seems to have been obviated by rS303274.