>>>> "GN" == Georg Nikodym
<georgn(a)home.com> writes:
GN> What you're looking for is an ABI spec which unfortunately is out of
GN> print. However,
GN>
http://www.sco.com/developer/gabi/ch5.dynamic.html#shobj_dependencies
GN> is what I think Ulrich refers to (5-20 if you happen to have a print
GN> copy).
MB> At the very least, please document the current behavior, and
MB> provide a reference to the `specification' on the web, and make
MB> it clear that the current behavior is _deliberately_ different
MB> from the Solaris behavior - else you're likely to get more bug
MB> reports on this.
GN> Uh, Solaris conforms to the ABI referred to above. Could you repeat
GN> why you think otherwise (sorry for my lack of attention earlier).
glibc, and the page at
www.sco.com you quoted, have executable RPATH
take precedence over LD_LIBRARY_PATH.
Quote from the web page:
``All LD_LIBRARY_PATH directories are searched after those from DT_RPATH''
My copy of Solaris 2.6 has LD_LIBRARY_PATH take precedence over RPATH
(I just tested it again to make sure).
Here are interesting extracts from the libtool manual (recommended reading):
- Variable: shlibpath_overrides_runpath
Indicates whether it is possible to override the hard-coded library
search path of a program with an environment variable. If this is
set to no, libtool may have to create two copies of a program in
the build tree, one to be installed and one to be run in the build
tree only. When each of these copies is created depends on the
value of `fast_install'. The default value is `unknown', which is
equivalent to `no'.
- Variable: fast_install
Determines whether libtool will privilege the installer or the
developer. The assumption is that installers will seldom run
programs in the build tree, and the developer will seldom install.
This is only meaningful on platforms in which
SHLIBPATH_OVERRIDES_RUNPATH is not `yes', so FAST_INSTALL will be
set to `needless' in this case. If FAST_INSTALL set to `yes',
libtool will create programs that search for installed libraries,
and, if a program is run in the build tree, a new copy will be
linked on-demand to use the yet-to-be-installed libraries. If set
to `no', libtool will create programs that use the
yet-to-be-installed libraries, and will link a new copy of the
program at install time. The default value is `yes' or
`needless', depending on platform and configuration flags, and it
can be turned from `yes' to `no' with the configure flag
`--disable-fast-install'.