Including -R /usr/local/lib?

Joe Buck jbuck@synopsys.com
Sun Apr 19 18:10:00 GMT 1998


> 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

That's true only because you specified --enable-shared and did
not specify --prefix.  Had you specfied --prefix, you would have
needed to wire in $(prefix)/lib instead.

> It seems like the g++ command should know where libstdc++ is, and
> automatically add the `-R /usr/local/lib' business for the user.

> Is there an option or environment setting for configure that I
> can use to get egcs to automatically add the `-R /usr/local/lib'?

I believe that you could modify the specs file.



More information about the Gcc mailing list