Page MenuHomeFreeBSD

Let DEBUG be overridden on the command line with lib/libc/resolv
ClosedPublic

Authored by ngie on Dec 11 2015, 5:20 PM.
Tags
None
Referenced Files
F112709923: D4519.diff
Fri, Mar 21, 6:44 PM
Unknown Object (File)
Mon, Mar 17, 3:00 PM
Unknown Object (File)
Wed, Mar 5, 7:52 PM
Unknown Object (File)
Feb 6 2025, 9:18 AM
Unknown Object (File)
Jan 21 2025, 3:58 AM
Unknown Object (File)
Jan 20 2025, 3:58 AM
Unknown Object (File)
Jan 18 2025, 8:11 PM
Unknown Object (File)
Jan 17 2025, 11:43 AM

Details

Summary

Let DEBUG be overridden on the command line with lib/libc/resolv

I ran into compilation issues when trying to do make DEBUG_FLAGS="-g -O0 -DDEBUG"
with libc because the definitions mismatched (nothing vs #defined as 1).

This fixes the issues in lib/libc/resolv with duplicate definitions

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ngie retitled this revision from to Disable explicit DEBUG #define in lib/libc/resolv.
ngie updated this object.
ngie edited the test plan for this revision. (Show Details)
ngie added a reviewer: ume.
ngie added subscribers: vangyzen, jilles.

No, please don't do that. It looses the feature of the resolver. You should change as follows like NetBSD did:

#ifndef DEBUG
#define DEBUG
#endif
ngie retitled this revision from Disable explicit DEBUG #define in lib/libc/resolv to Let DEBUG be overridden on the command line with lib/libc/resolv.Dec 13 2015, 3:24 AM
ngie updated this object.
ngie edited edge metadata.

Allow DEBUG to be overridden by values on the command line instead of just removing them

Requested by: ume

This revision is now accepted and ready to land.Dec 14 2015, 4:40 PM
ume edited edge metadata.
This revision was automatically updated to reflect the committed changes.