diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2019-04-21 09:13:56 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2019-04-21 09:13:56 +0000 |
commit | c62f4f3c8ea526456e3387c2b22d40e7d76d6918 (patch) | |
tree | 017e2f0b1337eefa8279e2e7c1e0b2c8bc5a7d94 /libexec | |
parent | 22614da01cdeac6ea32c70335e07f31911dc76f3 (diff) |
MFC r346216:
ld-elf.so: make LD_DEBUG always functional.
Notes
Notes:
svn path=/stable/11/; revision=346485
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/rtld-elf/Makefile | 2 | ||||
-rw-r--r-- | libexec/rtld-elf/debug.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile index 01ccace94104..2522a7c8ab16 100644 --- a/libexec/rtld-elf/Makefile +++ b/libexec/rtld-elf/Makefile @@ -2,7 +2,7 @@ # Use the following command to build local debug version of dynamic # linker: -# make DEBUG_FLAGS=-g DEBUG=-DDEBUG WITHOUT_TESTS=yes all +# make DEBUG_FLAGS=-g WITHOUT_TESTS=yes all .include <src.opts.mk> PACKAGE= clibs diff --git a/libexec/rtld-elf/debug.h b/libexec/rtld-elf/debug.h index ed65227ee03d..e9fcae3b52f7 100644 --- a/libexec/rtld-elf/debug.h +++ b/libexec/rtld-elf/debug.h @@ -37,10 +37,10 @@ #include <string.h> #include <unistd.h> -extern void debug_printf(const char *, ...) __printflike(1, 2); +void debug_printf(const char *, ...) __printflike(1, 2); extern int debug; -#ifdef DEBUG +#ifndef NO_LD_DEBUG #define dbg(...) debug_printf(__VA_ARGS__) #else #define dbg(...) ((void) 0) |