Date: Tue, 03 Sep 2019 14:08:09 -0000 From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r346485 - stable/11/libexec/rtld-elf Message-ID: <201904210913.x3L9Dv0j098256@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sun Apr 21 09:13:56 2019 New Revision: 346485 URL: https://svnweb.freebsd.org/changeset/base/346485 Log: MFC r346216: ld-elf.so: make LD_DEBUG always functional. Modified: stable/11/libexec/rtld-elf/Makefile stable/11/libexec/rtld-elf/debug.h Directory Properties: stable/11/ (props changed) Modified: stable/11/libexec/rtld-elf/Makefile ============================================================================== --- stable/11/libexec/rtld-elf/Makefile Sun Apr 21 09:11:22 2019 (r346484) +++ stable/11/libexec/rtld-elf/Makefile Sun Apr 21 09:13:56 2019 (r346485) @@ -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 Modified: stable/11/libexec/rtld-elf/debug.h ============================================================================== --- stable/11/libexec/rtld-elf/debug.h Sun Apr 21 09:11:22 2019 (r346484) +++ stable/11/libexec/rtld-elf/debug.h Sun Apr 21 09:13:56 2019 (r346485) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904210913.x3L9Dv0j098256>