-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jean-Francois Dive wrote:
...
|> Il n'y a pas de path dans une shared lib, uniquement le nom absolu et

si si ;)

man ld:
- -rpath dir
Add  a  directory  to  the  runtime library search path.  This is used when linking an 
ELF
executable with shared objects.  All -rpath arguments are concatenated and passed to 
the runtime
linker, which  uses  them to  locate  shared  objects at runtime.  The -rpath option 
is also used
when locating shared objects which are needed by shared objects explicitly included in 
the link;
see  the  description  of  the  -rpath-link option.   If  -rpath  is not used when 
linking an ELF
executable, the contents of the environment variable "LD_RUN_PATH" will be used if it 
is defined.

[...]

- -rpath-link DIR
When using ELF or SunOS, one shared library may require another.  This happens when an "ld  
-shared"
~ link includes a shared library as one of the input files.
When  the linker encounters such a dependency when doing a non-shared, non-relocatable 
link, it will
automatically try to locate the required shared library and include it in the link,  
if  it  is  not
~ included explicitly.  In such a case, the -rpath-link option specifies the first set 
of directories
to search.  The -rpath-link option may specify a sequence of directory names either by 
specifying a
list  of  names  separated by colons, or by appearing multiple times.
This  option  should be used with caution as it overrides the search path that may 
have been hard
compiled into a shared library. In such a case it is possible to use unintentionally a 
different
search  path  than the runtime linker would do.

- --
~  -o) Pascal Bleser        http://guru.unixtech.be
~  /\\ <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
~ _\_v The more things change, the more they stay insane.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAqZK5r3NMWliFcXcRAn38AKC2Bn/LY+dCx9RxMfG4n8eRU9cQyACfTqnG
mIzpGoOUXwcylXo3FYuHEpw=
=FJxE
-----END PGP SIGNATURE-----
_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
IRC: chat.unixtech.be:6667 - #unixtech

Répondre à