libtool
[Top][All Lists]
Advanced

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

Re: g++ is not used by libtool


From: Christoph Bartoschek
Subject: Re: g++ is not used by libtool
Date: Tue, 7 Jun 2005 22:39:57 +0200
User-agent: KMail/1.8.1



Am Dienstag, 7. Juni 2005 21:31 schrieb Ralf Wildenhues:
> Hi Christoph,
>
> * Christoph Bartoschek wrote on Tue, Jun 07, 2005 at 08:57:26PM CEST:
> > I'm trying to compile fam-2.6.10 from
> > ftp://oss.sgi.com/projects/fam/download/stable/fam-2.6.10.tar.gz
> >
> > The problem is that fam is a C++ library and libtool is not capable of
> > C++.
>
> Libtool /is/ capable of C++.

Oh, I want to apologise for writing this sentence.

> Several issues:
> First, the libtool that ships with the tarball is *ancient* (1.4, four
> years old).  Tell them to update to a recent one.
> Second, at the time that libtool was current, it was actually deemed
> safer bet to link with gcc and add libstdc++ manually than link with
> g++.  (Maybe the latter was even impossible, I don't know -- at the time
> of libtool-1.4 I did not have anything to do with it yet).
>

> > How can I achieve that  g++ is called and not gcc?  And how to get rid
> > of  /usr/lib/libstdc++.so correctly?
>
> Tell the maintainers of that package to use an up to date libtool.
> Or update it yourself (1.5.18 is recent, you need to re-libtoolize
> for ltmain.sh and get aclocal to include the corresponding libtool.m4
> into aclocal.m4).
>

Is this easy to do? I guess I have to read libtools documentations.

> > I've found the line
> >
> > libfam_la_LIBADD = -lstdc++
> > in Makefile.in.
>
> Delete that line.  And while you're at it, replace AM_PROG_LIBTOOL with
> AC_PROG_LIBTOOL in configure.in.
>
> After all of this you should be set.  Well, you won't, because the rest
> of the package is as unmaintained as the build infrastructure (the C++
> standard conformance is rather, um, could be better).  Are you sure
> there is not a more recent version of this package?
>
> Regards,
> Ralf

There is a more recent version 
ftp://oss.sgi.com/projects/fam/download/stable/fam-2.7.0.tar.gz.  But it 
also has the same problems, although it is from 2003. 

I would like to omit this package, but KDE somehow depends on it and their 
libtool finds /usr/lib/libstdc++.la, if I do not provide my own version.  
But I have to prevent that any package uses /usr/lib/libstdc++.so.   


Thanks,
Christoph




reply via email to

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