- Allow RTLD_DEFAULT_LIBRARY_PATH to be overridden.
- If ${SHLIBDIR} != ${LIBDIR}, then set RTLD_DEFAULT_LIBRARY_PATH to ${SHLIBDIR}:${LIBDIR}
This commit is contained in:
parent
a5d8d0231c
commit
dc75a614e2
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.42 2001/12/28 05:30:24 lukem Exp $
|
||||
# $NetBSD: Makefile,v 1.43 2001/12/28 05:44:22 lukem Exp $
|
||||
|
||||
.include <bsd.own.mk> # for OBJECT_FMT definition
|
||||
|
||||
@ -38,6 +38,10 @@ CPPFLAGS+= -D_RTLD_SOURCE
|
||||
#CPPFLAGS+= -DRTLD_DEBUG_RELOC
|
||||
#DBG= -g
|
||||
|
||||
.if ${SHLIBDIR} != ${LIBDIR}
|
||||
CPPFLAGS+= -DRTLD_DEFAULT_LIBRARY_PATH=\"${SHLIBDIR}:${LIBDIR}\"
|
||||
.endif
|
||||
|
||||
LDADD+= -non_shared -L${DESTDIR}${LIBDIR} -lc_pic
|
||||
DPADD+= ${LIBC_PIC}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rtld.h,v 1.32 2001/12/14 00:53:07 thorpej Exp $ */
|
||||
/* $NetBSD: rtld.h,v 1.33 2001/12/28 05:44:22 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1996 John D. Polstra.
|
||||
@ -45,7 +45,9 @@
|
||||
|
||||
#if defined(_RTLD_SOURCE)
|
||||
|
||||
#ifndef RTLD_DEFAULT_LIBRARY_PATH
|
||||
#define RTLD_DEFAULT_LIBRARY_PATH "/usr/lib"
|
||||
#endif
|
||||
#define _PATH_LD_HINTS "/etc/ld.so.conf"
|
||||
|
||||
#if 0
|
||||
|
Loading…
Reference in New Issue
Block a user