libtool
[Top][All Lists]
Advanced

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

Re: libtool/ltmain.sh pulling in wrong stdc++


From: Graham Leggett
Subject: Re: libtool/ltmain.sh pulling in wrong stdc++
Date: Wed, 3 Aug 2005 16:04:27 +0200 (SAST)
User-agent: SquirrelMail/1.4.3a-9.EL4

Graham Leggett said:

> What method needs to be used to tell libtool to link to stdc++ that
> belongs to the compiler being run?

As was pointed out in a followup message (I deleted the message by
accident, sorry!), it should not be necessary to explicitly link to the
stdc++ library, however libtool seems to think this is necessary:

src/cpp/eod/.libs/libmonacoxmleod++.la:dependency_libs=' -R/usr/local/lib
-R/usr/lib -R/usr/openwin/lib -R/usr/local/BerkeleyDB.4.2/lib
-R/usr/local/ssl/lib  -L
/usr/local/lib /usr/local/lib/libxml2.la -L/usr/lib -L/usr/openwin/lib
-L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/ssl/lib -lpthread -lintl
/usr/local/lib/libiconv.la -lnsl -lsocket -lz -lc
/usr/local/lib/libstdc++.la
-L/usr2/SOURCES/S8/gcc-3.4.2/objdir/sparc-sun-solaris2.8/libstdc++-v3/src
-L/usr2/SOURCES/S8/gcc-3.4.2/objdir/sparc-sun-solaris2.8/libstdc++-v3/src/.libs
-L/usr2/SOURCES/S8/gcc-3.4.2/objdir/gcc
-L/usr/local/sparc-sun-solaris2.8/bin
-L/usr/local/sparc-sun-solaris2.8/lib
-L/usr/local/lib/../sparc-sun-solaris2.8/lib'

To add to the fun, I have one project that links to the incorrect C++
library, and a second project that links to the correct C++ library.

I cannot find any obvious difference between the libtool/autoconf setups
in either project that would explain why one detects the correct gcc,
while the other one does not.

The script ltmain.sh seems to create the dependency_libs variable within
the .la file.

What script/program/command is used to create dependancy_libs variable?

Regards,
Graham
--





reply via email to

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