From f97f957e48a69ca40674a05cd50ec66a6f3d8c18 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 16 Apr 2007 05:40:37 +0000 Subject: fix compile on Sun CC git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@325 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- GNUmakefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index f839002..23d1343 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -48,10 +48,8 @@ endif ifeq ($(UNAME),) # for DJGPP, where uname doesn't exist CXXFLAGS += -mbnu210 else -ifneq ($(CXX),CC) # don't use -pipe with CC (Solaris native C++ compiler) CXXFLAGS += -pipe endif -endif ifeq ($(UNAME),Linux) LDFLAGS += -pthread @@ -72,6 +70,14 @@ endif ifeq ($(UNAME),SunOS) LDLIBS += -lnsl -lsocket +ifeq ($(CXX),CC) # override flags for CC (Solaris native C++ compiler) +CXXFLAGS = -DNDEBUG -O -g -native +LDFLAGS = +ifeq ($(ISX86),1) +# SSE2 intrinsics should work in Sun Studio 12 +# CXXFLAGS += -xarch=sse2 -D__SSE2__ +endif +endif endif SRCS = $(wildcard *.cpp) -- cgit v1.2.1