Craig Hapanovich
City of Milwaukee
> What is the difference between the LIBPATH and LD_LIBRARY_PATH
> variables?
>
It's easy:
Some O/S's use the LD_LIBRARY_PATH environment variable to define a
list of directories to search for shared libraries. AIX does not use
this variable. Instead, it uses LIBPATH, which serves the same
function that LD_LIBRARY_PATH uses on other systems.
Hope this helps.
--
Greg Wimpey
greg.wimpey@waii*removetomail*.com.invalid
If LIBPATH is set when you run the ld command (under the compiler or
by itself) it will be used instead of the default libs. Using the -L
option will cause LIBPATH to be ignored at link time.
Recommendation: don't just set LIBPATH and ignore it. Use it as
required for running programs (but not the linker).
--
Gary R. Hook / AIX Kernel Development, IBM / These opinions are _MINE_
________________________________________________________________________
A piece of canvas is only the beginning
It takes on character with every loving stroke
This thing of beauty is the passion of an artist's heart
By God's design, we are a skin kaleidoscope "Colored people", dc Talk
Sent via Deja.com http://www.deja.com/
Before you buy.
>I've always wondered: Is there a way to examine an executable file to
>determine whether it set LIBPATH and what the value is?
Use dump -n.
--
Jens-Uwe Mager <pgp-mailto:62CFDB25>