Page MenuHomeFreeBSD

have WITH_CTF=YES imply DEBUG_FLAGS+=-g
ClosedPublic

Authored by markj on Nov 5 2014, 2:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 26, 8:46 AM
Unknown Object (File)
Sat, Oct 26, 8:46 AM
Unknown Object (File)
Sat, Oct 26, 8:46 AM
Unknown Object (File)
Sat, Oct 26, 8:35 AM
Unknown Object (File)
Thu, Oct 24, 4:13 PM
Unknown Object (File)
Thu, Oct 10, 1:39 AM
Unknown Object (File)
Sep 24 2024, 4:50 PM
Unknown Object (File)
Sep 21 2024, 5:48 AM
Subscribers
None

Details

Summary

When WITH_CTF is set, we run ctfconvert on each object file after it's created, and ctfmerge on object files when linking. There's no point in doing this if there's no debug info, though. This change just sets DEBUG_FLAGS+=-g when WITH_CTF=YES. Additionally, I removed some superfluous checks in bsd.prog.mk and bsd.lib.mk.

Test Plan

Ran a "make tinderbox" with WITH_CTF=YES, no failures.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

markj retitled this revision from to have WITH_CTF=YES imply DEBUG_FLAGS+=-g.
markj updated this object.
markj edited the test plan for this revision. (Show Details)
markj added reviewers: imp, emaste.
imp edited edge metadata.

Looks good to me.

This revision is now accepted and ready to land.Nov 5 2014, 6:53 AM
markj updated this revision to Diff 2321.

Closed by commit rS274200 (authored by @markj).