public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* multiple installed versions of gcc -- automatically set rpath ??
@ 2020-05-29  2:54 Patrick Herbst
  2020-05-29  3:07 ` Dan Kegel
  2020-05-29 11:33 ` Jonathan Wakely
  0 siblings, 2 replies; 7+ messages in thread
From: Patrick Herbst @ 2020-05-29  2:54 UTC (permalink / raw)
  To: gcc-help

I have the base gcc that came with my distro and i'd like to have the
option of using a newer version without replacing the older one.

I'd like to install the newer version in a different path, like /opt.

I run into a problem though when compiling with the newer version in
/opt, it links against the libstdc++ in /opt, but at runtime the
executable tries to link with the systems version in /usr/lib.

Is there a way to have the gcc in /opt automatically set the rpath
when linking so that executables can run against the /opt libstdc++?

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-05-29 17:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29  2:54 multiple installed versions of gcc -- automatically set rpath ?? Patrick Herbst
2020-05-29  3:07 ` Dan Kegel
2020-05-29  9:28   ` Patrick Bégou
2020-05-29 11:02     ` Thomas Doczkal
2020-05-29 11:22   ` Jonathan Wakely
2020-05-29 11:33 ` Jonathan Wakely
2020-05-29 17:23   ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).