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: Horst von Brand <vonbrand at inf dot utfsm dot cl>
- Subject: Re: egcs-19990103 c++ on Solaris2.6 needs -R/usr/local/lib
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 11 Jan 1999 04:46:04 -0200
- Cc: egcs-bugs at cygnus dot com
- References: <199901082050.RAA11684@pincoya.inf.utfsm.cl>
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. 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.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil