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)
Sat, Mar 28, 3:11 AM
Unknown Object (File)
Mon, Mar 23, 4:04 AM
Unknown Object (File)
Thu, Mar 19, 12:10 PM
Unknown Object (File)
Mon, Mar 9, 8:00 PM
Unknown Object (File)
Mon, Mar 9, 10:59 AM
Unknown Object (File)
Mon, Mar 9, 5:17 AM
Unknown Object (File)
Mon, Mar 9, 2:31 AM
Unknown Object (File)
Wed, Mar 4, 4:20 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.