public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* g++ not finding libstdc++.so on Solaris
@ 2001-04-02 12:08 Peter Kurpis
  2001-04-02 21:00 ` Alexandre Oliva
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Kurpis @ 2001-04-02 12:08 UTC (permalink / raw)
  To: gcc-help; +Cc: pkurpis

When I do a vanilla build of gcc 2.95.2 on Solaris 7 (with or
without --with-gnu-as and --with-gun-ld), everything apparently 
works fine except...

...when I build with g++, the resulting executable can't find 
libstdc++.so.2.10.0 because the path (being /usr/local/lib) is 
not hardwired into the resulting executable.

I can work around this by setting LD_LIBRARY_PATH=/usr/local/lib 
(which is an undesirable kludge) or by setting 
CXXFLAGS += -Wl,-rpath /usr/local/lib in my master Makefile, but 
is there a more graceful way to set it up right?

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

end of thread, other threads:[~2001-04-02 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-02 12:08 g++ not finding libstdc++.so on Solaris Peter Kurpis
2001-04-02 21:00 ` Alexandre Oliva

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).