From 55a8ab1c8b2d3ff2ad7b3325f87e78b8976a6169 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 5 Jul 2010 01:15:14 +0000 Subject: 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 --- GNUmakefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'GNUmakefile') 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__ -- cgit v1.2.1