Including -R /usr/local/lib?
Alexandre Oliva
oliva@dcc.unicamp.br
Sat Apr 18 18:00:00 GMT 1998
Amos A Gouaux <amos@utdallas.edu> writes:
> When using egcs on Solaris 2.6 to compile C++ code, for the
> executable to run one must do the following:
> $ g++ t.C -R /usr/local/lib
> It seems like the g++ command should know where libstdc++ is, and
> automatically add the `-R /usr/local/lib' business for the user.
This has been discussed to death already, and there was someone
willing to work on a fix (sorry, I don't remember who it was :-(
There are two possible current workarounds:
1) modify the specs file (/usr/local/lib/gcc-lib/*/*/specs) and add -R
to the `*link:' or `*lib:' pattern
2) modify `libstdc++/config/*.ml' and modify the `-h' or `-soname'
switch so that it includes the full pathname of the library.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc
mailing list