https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66809

--- Comment #7 from Michael Teske <subscribe at teskor dot de> ---
(In reply to Eric Botcazou from comment #6)
> > Why not add the directory to the RPATH of the created binaries? 
...
> > Are there any reasons against
> > doing it?
> 
> Yes, I don't think that we want to hardcode run-time paths by default.

Usually, RPATH does not hardcode the run time path library path, it is still
overridable with LD_LIBRARY_PATH, it just provides a default if LD_LIBRARY_PATH
is not set. IMHO it would be convenient to have the possibility (need not be
the default, just an option to configure) to have gcc finding it's library in
the locations where they were when gcc was built. If one needs to have
different versions of some utilities (possibly pre-built from different
sources) it can be difficult if not impossible to maintain a useful
LD_LIBRARY_PATH. Anyway, luckily the rpath tool exists for solaris so I can
"tune" the gcc binaries after the build.

Reply via email to