diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-04-16 05:40:37 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-04-16 05:40:37 +0000 |
commit | f97f957e48a69ca40674a05cd50ec66a6f3d8c18 (patch) | |
tree | 60a4e53f174eb18d85511f007d44f312368a52f9 /GNUmakefile | |
parent | b5f625d875e79351237cea1d5aba865148c77911 (diff) | |
download | cryptopp-f97f957e48a69ca40674a05cd50ec66a6f3d8c18.tar.gz |
fix compile on Sun CC
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@325 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 10 |
1 files changed, 8 insertions, 2 deletions
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) |