This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Path to libstdc++


On Tuesday 26 March 2002 04:50, Craig Rodrigues wrote:
> On Mon, Mar 25, 2002 at 10:36:33PM +0100, Allan Sandfeld Jensen wrote:
> > I am getting seriously tired of writing:
> > g++ helloworld.cpp -Wl,-R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1
> > -o helloworld
> >
> > And the fact that I always have had to write that in linux doesnt make it
> > any better.
> >
> > Does anyone have an idea, where this bug have crept in?
>
> This discussion has come up before.  See:
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&;
>pr=2242 http://gcc.gnu.org/ml/gcc/2001-03/msg01069.html

Hmm, what about at link time to add the path to the found a used libstdc++? 
Possibly putting this rpath last after search in LD_LIBRARY_PATH. Btw, Is 
this possible in elf? I know in hpux, you can add rpath with ld +b and search 
LD_LIBRARY_PATH with ld +s, +b arguments after +s are searched only if a 
library is not found in LD_LIBRARY_PATH.

Anyway I think it makes sense for at least --version-specific-runtime-libs.

greetings
`Allan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]