This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Path to libstdc++
- From: Manfred Hollstein <manfred dot h at gmx dot net>
- To: "M. Lavasani" <lavasani at connect dot org dot uk>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 25 Mar 2002 14:55:44 +0100
- Subject: Re: Path to libstdc++
- References: <200203251346.g2PDkC403909@quioch.connect.liv.ac.uk>
M. Lavasani wrote:
> 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.
Yup, understood.
>>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 have to admit I'm rather un-experienced on HP-UX, but you need to
use an option/variable setting that's equivalent to
-Wl,-rpath,/opt/mehdi/gcc11/lib
or
export LD_RUN_PATH=/opt/mehdi/gcc11/lib
This works on non HP-UX systems such as Linux or Solaris. Perhaps
you should dig in your ld.so and ld manpages.
>
>>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
>>
Hmm, have you tried binutils-2.12 already?
>
>
> Thanks again
>
> __Mehdi
>
HTH, cheers.
l8er
manfred
--
Manfred Hollstein If you have any questions about GNU software:
Hindenburgstr. 13/1 <mailto:manfred.h@gmx.net>
75446 Wiernsheim, FRG <http://people.redhat.com/manfredh/>
GPG: <http://people.redhat.com/manfredh/manfred.h@gmx.net.asc>
GPG fingerprint: 2E92 1176 F71A 392D 6AF4 3BBD 3145 F36B 27BA A62D