libtool-patches
[Top][All Lists]
Advanced

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

Re: Support -library=stlport4 with Sun C++ compiler


From: Albert Chin
Subject: Re: Support -library=stlport4 with Sun C++ compiler
Date: Tue, 1 Aug 2006 12:00:24 -0500
User-agent: Mutt/1.5.6i

On Tue, Aug 01, 2006 at 02:12:31PM +0900, Peter O'Gorman wrote:
> 
> On Aug 1, 2006, at 1:38 PM, Albert Chin wrote:
> 
> >Sun C++ supports two C++ libraries, -library=Cstd (default), and the
> >newer -library=stlport4. They are incompatible. Therefore, libtool's
> >use of -lCstd (equivalent to -library=Cstd) should not be assigned to
> >$postdeps if -library=stlport4 is in CXXFLAGS. Patch attached.
> >
> >Patch against branch-1-5 and branch-2.0 attached.
> 
> This makes sense, but branch-2-0 is dead :-)
> 
> Before I apply it though, do we also want to check CXX for - 
> library=stlport4 ? Someone could do CXX='CC -library=stlport4' and  
> expect libtool not to add CStd etc. Can't we do
> 
> case        " $CXX $CXXFLAGS " in
>    *" -library=stlport4 "*) solaris_use_stlport4=yes ;;
> esac
> 
> To save the loop too?

Good catch. Updated patch attached.

2006-08-01  Albert Chin <address@hidden>

        * libtool.m4 (AC_LIBTOOL_POSTDEP_PREDEP) [ solaris ]:
        Don't set $postdeps to "-lCstd -lCrun" if
        "-library=stlport4" set in CXXFLAGS as stlport4 C++
        library incompatible with Cstd C++ library. Use
        '-library=Cstd -library=Crun' instead of '-lCstd -lCrun'.

2006-08-01  Albert Chin <address@hidden>

        * libltdl/m4/libtool.m4 (_LT_SYS_HIDDEN_LIBDEPS) [ solaris ]:
        Don't set $postdeps to "-lCstd -lCrun" if
        "-library=stlport4" set in CXXFLAGS as stlport4 C++
        library incompatible with Cstd C++ library. Use
        '-library=Cstd -library=Crun' instead of '-lCstd -lCrun'.

-- 
albert chin (address@hidden)

Attachment: 1.5
Description: branch-1-5 patch

Attachment: head
Description: HEAD patch


reply via email to

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