[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gcc 3.4.0, libtool, and C++
From: |
Albert Chin |
Subject: |
Re: gcc 3.4.0, libtool, and C++ |
Date: |
Sun, 2 May 2004 21:06:33 -0500 |
User-agent: |
Mutt/1.5.6i |
On Sun, May 02, 2004 at 06:24:50PM -0500, Bob Friesenhahn wrote:
> On Sun, 2 May 2004, Albert Chin wrote:
>
> > On Sun, May 02, 2004 at 01:47:09PM -0500, Bob Friesenhahn wrote:
> > > I am encountering a problem with gcc 3.4.0 in that when libtool
> > > performs a C++ link, it includes -L options which reference GCC
> > > 3.4.0's build directory. Under Solaris, this causes a link failure.
> > > In order for builds of C++ programs to succeed, it is necessary to
> > > move/remove the GCC build directory.
> > >
> > > For example, these options are added for all C++ links on my Solaris
> > > machine:
> > >
> > > -L/home/bfriesen/src/gnu/gcc-3.4.0-build/sparc-sun-solaris2.9/libstdc++-v3/src
> > > -L/home/bfriesen/src/gnu/gcc-3.4.0-build/sparc-sun-solaris2.9/libstdc++-v3/src/.libs
> > > -L/home/bfriesen/src/gnu/gcc-3.4.0-build/gcc
> >
> > What does dependency_libs in libstdc++.la look like?
>
> Naturally:
>
> dependency_libs='
> -L/home/bfriesen/src/gnu/gcc-3.4.0-build/sparc-sun-solaris2.9/libstdc++-v3/src
> -L/home/bfriesen/src/gnu/gcc-3.4.0-build/sparc-sun-solaris2.9/libstdc++-v3/src/.libs
> -lm -lm -lm -L/home/bfriesen/src/gnu/gcc-3.4.0-build/gcc
> -L/usr/ccs/bin -L/usr/ccs /lib -L/usr/local/lib -lgcc_s -lgcc_s -lm
> -lgcc_s -lgcc_s'
>
> While it is true that this bug is specific to the libraries built with
> GCC, since many systems use GCC, this bug is inherited by libtool.
It's a bug with the version of libtool built by GCC. As the GCC folks
use a custom-hacked version of libtool, you need to contact them for a
fix.
--
albert chin (address@hidden)