[Top][All Lists]
[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)
1.5
Description: branch-1-5 patch
head
Description: HEAD patch
- Support -library=stlport4 with Sun C++ compiler, Albert Chin, 2006/08/01
- Re: Support -library=stlport4 with Sun C++ compiler, Peter O'Gorman, 2006/08/01
- Re: Support -library=stlport4 with Sun C++ compiler,
Albert Chin <=
- Re: Support -library=stlport4 with Sun C++ compiler, Peter O'Gorman, 2006/08/02
- Re: Support -library=stlport4 with Sun C++ compiler, Ralf Menzel, 2006/08/03
- Re: Support -library=stlport4 with Sun C++ compiler, Peter O'Gorman, 2006/08/03
- Re: Support -library=stlport4 with Sun C++ compiler, Albert Chin, 2006/08/03
- Re: Support -library=stlport4 with Sun C++ compiler, Peter O'Gorman, 2006/08/03
- Re: Support -library=stlport4 with Sun C++ compiler, Albert Chin, 2006/08/03