Including -R /usr/local/lib?

Kamil Iskra kamil@dwd.interkom.pl
Sun Apr 19 08:38:00 GMT 1998


On 18 Apr 1998, Alexandre Oliva wrote:

> > 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.
[snip]
> 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.

Excuse me, but what is wrong with setting the LD_LIBRARY_PATH environment
variable so that it includes /usr/local/lib? That's what I did with gcc
2.8.1 on my university, I would expect it to work the same with egcs?

/ Kamil Iskra    AmigaOS  Linux/i386  Linux/m68k               \
| GeekGadgets GCC maintainer   UNIX system administrator       |
| iskra@student.uci.agh.edu.pl  kiskra@ernie.icslab.agh.edu.pl |
\ kamil@dwd.interkom.pl   http://student.uci.agh.edu.pl/~iskra /




More information about the Gcc mailing list