diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2010-07-05 01:15:14 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2010-07-05 01:15:14 +0000 |
commit | 55a8ab1c8b2d3ff2ad7b3325f87e78b8976a6169 (patch) | |
tree | bdfe463fd8b180c37b65007e19a29aa915fff3b3 /GNUmakefile | |
parent | 32a4a9f72510c22a1c4ef7b73b0496ea031a090b (diff) | |
download | cryptopp-55a8ab1c8b2d3ff2ad7b3325f87e78b8976a6169.tar.gz |
port to Sun Studio 12u1 Sun C++ 5.10 SunOS_i386 128229-02 2009/09/21
change makefile to compile for both i386 and x86_64 on Darwin/Mac OS X
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@499 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index 5bf68b8..b32392b 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -31,7 +31,9 @@ GAS217_OR_LATER = $(shell echo "" | $(AS) -v 2>&1 | $(EGREP) -c "GNU assembler v ISMINGW = $(shell $(CXX) --version 2>&1 | $(EGREP) -c "mingw") ifneq ($(GCC42_OR_LATER),0) -ifneq ($(UNAME),Darwin) +ifeq ($(UNAME),Darwin) +CXXFLAGS += -arch x86_64 -arch i386 +else CXXFLAGS += -march=native -mtune=native endif endif @@ -86,6 +88,9 @@ 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) LDFLAGS = +AR = CC +ARFLAGS = -xar -o +RANLIB = true ifeq ($(ISX86),1) # SSE2 intrinsics should work in Sun Studio 12, but we're not using SSE2 intrinsics anymore # CXXFLAGS += -xarch=sse2 -D__SSE2__ |