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)


_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to