Subject: misc/2415: ld(1) lacks documentation of LD_LIBRARY_PATH and LD_NOSTD_PATH
To: None <gnats-bugs@NetBSD.ORG>
From: James E. Bernard <jbernard@tater.Mines.EDU>
List: netbsd-bugs
Date: 05/15/1996 06:06:30
>Number: 2415
>Category: misc
>Synopsis: ld man page omits environment vars LD_LIBRARY_PATH and LD_NOSTD_PATH
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Wed May 15 08:20:01 1996
>Last-Modified:
>Originator: Jim Bernard
>Organization:
Speaking for myself
>Release: -current (May 14, 1996)
>Environment:
System: NetBSD zoo 1.1 NetBSD 1.1 (ZOO) #0: Fri Mar 15 17:45:32 MST 1996 local@zoo:/home/local/netbsd-1.1/usr/src/sys/arch/i386/compile/ZOO i386
>Description:
ld uses the environment variables LD_LIBRARY_PATH and LD_NOSTD_PATH as
one means of controlling the search path for libraries, but the man
page makes no mention of them.
>How-To-Repeat:
man ld
>Fix:
*** ld.1-dist Tue May 14 13:55:07 1996
--- ld.1 Tue May 14 14:46:54 1996
***************
*** 213,218 ****
--- 213,233 ----
Make a
.Dv ZMAGIC
output file. This is the default.
+ .Sh ENVIRONMENT
+ .Nm
+ utilizes the following environment variables:
+ .Bl -tag -width "LD_LIBRARY_PATH"
+ .It Ev LD_LIBRARY_PATH
+ This colon-separated list of directories is inserted into the search
+ path for libraries following any directories specified via
+ .Ar -L
+ options and preceding the built-in path.
+ .It Ev LD_NOSTD_PATH
+ When set, do not search the built-in path for libraries.
+ This is an alternative to the
+ .Ar -nostdlib
+ command-line flag.
+ .El
.Sh FILES
.Sh SEE ALSO
.Xr ldconfig 1 ,
>Audit-Trail:
>Unformatted: