libtool
[Top][All Lists]
Advanced

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

Re: Sun Studio: STL libraries


From: Dan Lacher
Subject: Re: Sun Studio: STL libraries
Date: Wed, 06 Feb 2008 16:57:31 -0500
User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031)

Even with what Tim has pointed out I am seeing the contrary with the following:

  o Open MPI src base
  o Sun Studio 12
  o libtool 2.1b (just downloaded the latest)

After autogen has finished the aclocal.m4 ends up with -library=Cstd -library=Crun both. So that is what is used in the creation of the libmpi_cxx.so.0

dl

In trying to resolve a C++ issue within Open MPI we've run into an issue with Libtool automatically linking in Cstd.
Because Sun Studio supports two different types of C++ STL libraries
(Cstl and stlport4) we needed to remove Open MPI's reliance on STL
functions so applications being compiled with Sun Studio could use
either version of STL libraries (note once you link with one you cannot
use the other STL library).

I just ran into the opposite of this problem yesterday.

The short answer: you're using a version of libtool that's pretty old.
This issue was fixed in 2006.  Upgrade your libtool, and the problem will
go away.

Now, libtool doesn't force either Cstd or Crun into the libraries, which
means that if you use

    -library=stlport4

as part of CXXFLAGS, you probably also need

    -library=Crun

since that won't automatically be added.  I personally think that libtool
should still be adding -lCrun automatically, as it does for -lc, since
-lCrun is compatible with stlport4, but since there's a workaround, it's
no big deal.

Tim




reply via email to

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