Make sure that dbg() is disabled if LD_DEBUG is not defined. Now

debugging is easier with RTLD_DEBUG_RELOC.
This commit is contained in:
junyoung 2002-09-24 17:51:11 +00:00
parent 29ac8aa531
commit 5afbf1cbce

View File

@ -1,4 +1,4 @@
/* $NetBSD: rtld.c,v 1.72 2002/09/24 12:18:32 mycroft Exp $ */
/* $NetBSD: rtld.c,v 1.73 2002/09/24 17:51:11 junyoung Exp $ */
/*
* Copyright 1996 John D. Polstra.
@ -355,6 +355,8 @@ _rtld(sp, relocbase)
const char *ld_debug = getenv("LD_DEBUG");
if (ld_debug != NULL && *ld_debug != '\0')
debug = 1;
else
debug = 0;
#endif
_rtld_add_paths(&_rtld_paths, getenv("LD_LIBRARY_PATH"));
}