[Top][All Lists]

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

Re: Sun Studio: STL libraries

From: Peter O'Gorman
Subject: Re: Sun Studio: STL libraries
Date: Wed, 06 Feb 2008 17:25:52 -0600
User-agent: Thunderbird (X11/20071115)

Peter O'Gorman wrote:
> Tim Mooney wrote:
>> In regard to: Re: Sun Studio: STL libraries, Dan Lacher said (at 4:57pm
>> on...:
>>> 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
>> Looks like Albert's change from 2006-08-01 only went onto the 1.5 branch,
>> and not HEAD.  It should be on both branches.
> Thanks, I will find it and put it on HEAD.

Um, libltdl/m4/libtool.m4 has this check in _LT_SYS_HIDDEN_LIBDEPS for
tag CXX:
  case $cc_basename in
    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)

    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    if test "$solaris_use_stlport4" != yes; then
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'

So color me confused. If CXX or CXXFLAGS contains -library=stlport4 then
libtool will not add '-library=Cstd -library=Crun'.

Dan, I how do you configure? What does the link line look like?

Tim, you say we still need to have -library=Crun for the stlport4 case?
It looks like it was not added only because the stlport4 already depends
on it (I guess from ldd output?). So there should be no harm in adding
it explicitly.

Peter O'Gorman

reply via email to

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