port to Sun Studio 12u1 Sun C++ 5.10 SunOS_i386 128229-02 2009/09/21

pull/2/head
weidai 2010-07-05 11:14:14 +00:00
parent 1315a7bc9a
commit 9a892095a0
2 changed files with 4 additions and 2 deletions

View File

@ -86,7 +86,9 @@ endif
ifeq ($(UNAME),SunOS) ifeq ($(UNAME),SunOS)
LDLIBS += -lnsl -lsocket LDLIBS += -lnsl -lsocket
ifeq ($(CXX),CC) # override flags for CC (Solaris native C++ compiler) ifeq ($(CXX),CC) # override flags for CC (Solaris native C++ compiler)
CXXFLAGS = -DNDEBUG -O -g0 -native -template=no%extdef -m$(shell isainfo -b) # -DCRYPTOPP_INCLUDE_STD_CC is needed for Sun Studio 12u1 Sun C++ 5.10 SunOS_i386 128229-02 2009/09/21
# remove it if you get "already had a body defined" errors in vector.cc
CXXFLAGS = -DNDEBUG -O -g0 -native -template=no%extdef -DCRYPTOPP_INCLUDE_STD_CC -m$(shell isainfo -b)
LDFLAGS = LDFLAGS =
AR = CC AR = CC
ARFLAGS = -xar -o ARFLAGS = -xar -o

View File

@ -14,7 +14,7 @@
#include <map> #include <map>
#include <vector> #include <vector>
#ifdef __SUNPRO_CC #ifdef CRYPTOPP_INCLUDE_STD_CC
// workaround needed on Sun Studio 12u1 Sun C++ 5.10 SunOS_i386 128229-02 2009/09/21 // workaround needed on Sun Studio 12u1 Sun C++ 5.10 SunOS_i386 128229-02 2009/09/21
#include <vector.cc> #include <vector.cc>
#endif #endif