libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc 3.4.0, libtool, and C++


From: Bob Friesenhahn
Subject: Re: gcc 3.4.0, libtool, and C++
Date: Sun, 2 May 2004 18:24:50 -0500 (CDT)

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.

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen





reply via email to

[Prev in Thread] Current Thread [Next in Thread]