--- Comment #4 from floris dot bruynooghe at gmail dot com 2009-04-21
19:22 ---
Sure, that's why you should always use it together with --enable-new-dtags when
using GNU ld so you get a RUNPATH (note that for Solaris ld this is not needed,
you get a RUNPATH automatically if you use -R t
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-04-21 18:24 ---
Well RPATH cannot be overridden by ld.so which is the biggest reason why it is
bad.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39785
--- Comment #2 from floris dot bruynooghe at gmail dot com 2009-04-21
18:23 ---
Could you refer to documentation that explains what to use instead then? The
manpage for ld does not say anything about --rpath being a bad way (the default
behaviour of GNU ld of only adding RPATH and requ
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-04-21 17:20 ---
This is not a bug in GCC, this is a feature. LD_RUN_PATH/-rpath are broken
really. They cannot be used for relocating libraries.
--
pinskia at gcc dot gnu dot org changed:
What|Removed