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
Unknown Object (File)
Fri, Apr 26, 12:14 AM
Unknown Object (File)
Jan 3 2024, 10:18 PM
Unknown Object (File)
Dec 20 2023, 1:38 AM
Unknown Object (File)
Dec 16 2023, 9:22 AM
Unknown Object (File)
Dec 16 2023, 9:22 AM
Unknown Object (File)
Nov 14 2023, 2:09 AM
Unknown Object (File)
Nov 12 2023, 6:07 PM
Unknown Object (File)
Nov 2 2023, 2:46 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.