This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-19990103 c++ on Solaris2.6 needs -R/usr/local/lib
- To: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Subject: Re: egcs-19990103 c++ on Solaris2.6 needs -R/usr/local/lib
- From: Horst von Brand <vonbrand at inf dot utfsm dot cl>
- Date: Mon, 11 Jan 1999 11:00:19 -0300
- cc: Horst von Brand <vonbrand at inf dot utfsm dot cl>, egcs-bugs at cygnus dot com
Alexandre Oliva <oliva@dcc.unicamp.br> said:
> On Jan 8, 1999, Horst von Brand <vonbrand@inf.utfsm.cl> wrote:
> > sparc-sun-solaris2.6: If I compile anything with c++, the resulting
> > executable won't load libstdc++.so unless I explicitly give
> > -R/usr/local/lib. This is not something that can be tweaked in the specs
> > file, AFAIKS (not very far, I'm afraid :-).
> Actually, you can add -R/usr/local/lib to the specs file, for example,
> to the `*lib:' entry.
OK, I'll do that then for now.
> Another option is to add $(libexecdir)/ between
> `-h' and `$(SHLIB)' in $(SHFLAGS), in libstdc++/config/sol2shm.ml.
> This will hardcode the full pathname of the library into itself, so
> that any program that links with it will be able to find it. However,
> if the library is ever moved, not even LD_LIBRARY_PATH will help find
> it.
AFAIU, libstdc++ is essentially a part of the compiler, so it might as well
do that to fix the problem once and for all?
--
Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513