[Top][All Lists]

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

Re: Sun Studio: STL libraries

From: Tim Mooney
Subject: Re: Sun Studio: STL libraries
Date: Wed, 6 Feb 2008 17:34:57 -0600 (CST)

In regard to: Re: Sun Studio: STL libraries, Peter O'Gorman said (at 5:05pm...:

I still maintain that it would be OK to have libtool automatically add
`-library=Crun', since that is generally needed whether you're using
-library=stlport4 or -library=Cstd, but it's OK to not include that.  We
just need to make sure the correct usage is documented somewhere.

If it's not currently documented (I don't know, I haven't checked the 2.x
series), I would be willing to write a little blurb for the info files
or some other spot, if people want.

Something in notes.texi?

How about this:

--- libtool-2.1b.orig/doc/notes.texi    2008-01-26 00:21:22.000000000 -0600
+++ libtool-2.1b/doc/notes.texi 2008-02-06 17:32:43.895290000 -0600
@@ -77,4 +77,27 @@
 @code{lt_cv_sys_lib_dlsearch_path_spec} respectively to the correct search

+When using the C++ compiler from the Sun Workshop (formerly Forte)
+development environment on either Solaris or Linux, libtool will use
address@hidden as the linker, and will not automatically link with either
address@hidden or @file{libCrun}.  This is because recent versions of
+Sun Workshop (11 and 12, as of this writing) have the option of using
address@hidden or @file{stlport4_dbg}, and those libraries are
+incompatible with @file{libCstd}.
+The correct method to link with the additional libraries that your project
+needs is to include each library in the @code{CXXFLAGS} when configuring your
+project.  For example,
+       CXXFLAGS='-library=stlport4 -library=Crun'
address@hidden example
+       CXXFLAGS='-library=Cstd -library=Crun'
address@hidden example
 @end itemize

reply via email to

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