From 9a892095a06ab25d901a98f040cff10841dc72c3 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 5 Jul 2010 11:14:14 +0000 Subject: [PATCH] port to Sun Studio 12u1 Sun C++ 5.10 SunOS_i386 128229-02 2009/09/21 --- GNUmakefile | 4 +++- stdcpp.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index b32392bd..e32c5e46 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -86,7 +86,9 @@ endif ifeq ($(UNAME),SunOS) LDLIBS += -lnsl -lsocket 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 = AR = CC ARFLAGS = -xar -o diff --git a/stdcpp.h b/stdcpp.h index d4438841..535f0e75 100644 --- a/stdcpp.h +++ b/stdcpp.h @@ -14,7 +14,7 @@ #include #include -#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 #include #endif