shlib
Package: WA2L/edrc 1.5.57
Section: Library Commands (3)
Updated: 07 May 2009
Index
Return to Main Contents
NAME
shlib - print shared library path environment
SYNOPSIS
edrc/lib/shlib
[
-n
]
AVAILABILITY
WA2L/edrc
DESCRIPTION
print the environment variables needed by the dynamic linker
ld(1)
to locate the shared libraries.
If a script need to set this environment variables (
$LD_LIBRARY_PATH
and
$SHLIB_PATH
), use
eval `shlib`
instead of setting them by your own. This ensures, that
all scripts will continue to run, even when the directory
structure in WA2L/edrc changes.
OPTIONS
- -n
-
no
export VARIABLE ...
output.
ENVIRONMENT
- $LD_LIBRARY_PATH
-
path of additional shared libraries loaded by the
ld
dynamic linker.
This variable will be expanded with the shared library
locations for a certain Os-Id distributed with WA2L/edrc
when executing the
shlib
command.
- $SHLIB_PATH
-
this variable is expanded as the
$LD_LIBRARY_PATH
is done. This variable has basically the same function
as the
$LD_LIBRARY_PATH
and is mostly active on HPUX systems.
EXIT STATUS
- 0
-
always
FILES
- [edrc/lib/<Os-Id>/<GLIBC>/libs/:]edrc/lib/<Os-Id>/libs/
-
location of operating system dependent shared
libraries. This directory is
appended to the
$LD_LIBRARY_PATH
and the
$SHLIB_PATH
environment variables when executing
shlib.
- /usr/ccs/lib:/lib:/usr/lib:/usr/openwin/lib:/usr/local/lib
-
standard library path for Solaris.
- $LD_LIBRARY_PATH:/etc:/lib:/lib/tls:/usr/lib:/usr/X11R6/lib:/usr/local/lib
-
standard library path for Linux.
- $LD_LIBRARY_PATH $SHLIB_PATH
-
standard library path for HP-UX.
- $LD_LIBRARY_PATH:/lib:/usr/lib:/usr/local/lib $SHLIB_PATH:/lib:/usr/lib:/usr/local/lib
-
standard library path for other operating systems.
EXAMPLES
-
SEE ALSO
edrcintro(1),
glibc.version(3),
ld(1),
osid(3),
os_wrapper(1)
NOTES
-
BUGS
-
AUTHOR
shlib was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
COPYRIGHT
Copyright © 2009
Christian Walther
This is free software; see
edrc/doc/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 17:18:15 GMT, March 29, 2025