Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...
|
Re: how do you link to a different lib location at run time?: msg#00024
|
Subject: |
Re: how do you link to a different lib location at run time? |
On Wed, Dec 29, 2004 at 10:52:52AM -0500, Robert P. J. Day wrote:
> other options include working with /etc/ld.so.conf on the new
> system, of course, or using LD_LIBRARY_PATH (although there are
> numerous online essays about why this is a bad idea.)
Are you aware that DT_RPATH may contain "$ORIGIN" which is
the directory in which the executable lives? Thus if you
wanted to package stuff like
/opt/foo/bin/myapp
/opt/foo/lib/mylib1.so
/opt/foo/lib/mylib2.so
you can do -Wl,-rpath,'$ORIGIN/../lib'.
r~
|
| |