This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Path to libstdc++
- From: "M. Lavasani" <lavasani at connect dot org dot uk>
- To: manfred dot h at gmx dot net (Manfred Hollstein)
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 25 Mar 2002 13:46:11 +0000 (GMT)
- Subject: Re: Path to libstdc++
Thanks for the reply.
> >
> > I 've compiled gcc-3.0.3 on HPUX version 11.00.
> >
> > When I use g++ compiler to compile a program it links the binary to
> > "libstdc++". The problem is, it using the full path:
> >
> > /opt/mehdi/gcc11/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.3/../../../libstdc++.sl.3
> >
> > That means if I upgrade my compiler the binary will not work anymore unless
> > I compile it with new version.
>
> This was recommended with earlier versions of gcc anyway.
>
May be that was necessary in the older versions, but I don't think it should
be the case now.
I am compiling c++ program for HPUX Archive, between each stable ralease of
gcc, we may compile hundredrs of c++ programs, Recompiling all this program
with the new release of gcc is a rather tedious job.
>
> I suggested implementing the ``--disable-version-specific-runtime-libs´´
> to achieve exactly the behaviour you're trying to get, ie. keep
> several versions of the libs installed while switching the "standard"
> version of the compiler. It worked perfectly for libg++ and libstdc++,
> but nobody has ported it to work with libstdc++-v3 which is used
> nowadays. Right now, I'd strongly discourage using the given flag.
> If you want to keep different versions of the tools/libraries
> installed, you should use different directories for the ``--prefix=´´
> for each version.
>
I don't want to keep different version of gcc. I just want the line below:
/opt/mehdi/gcc11/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.3/../../../libstdc++.sl.3
changed to:
/opt/mehdi/gcc11/lib/libstdc++.sl.3
>
> I guess, you're using HP native tools; you should install GNU
> binutils instead and indicate this when configuring GNU gcc using
I am using binutils-2.11.2. And I 've already set the path to
--with-gnu-as=/opt/binutils/bin/as
>
> --with-gnu-as=/path/to/GNU/as
>
Thanks again
__Mehdi