summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-05-05 02:57:27 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-05-05 02:57:27 +0000
commit1c2dcad007bd4f0e1f62f5d7f0fb15074df6fe96 (patch)
tree6d0466b8f409f5343dfe1ced6841c189d3ee2fb2 /GNUmakefile
parent750c2aa1d078b97c222ebe54da350dd8bf24de82 (diff)
downloadcryptopp-1c2dcad007bd4f0e1f62f5d7f0fb15074df6fe96.tar.gz
don't use -msse2 for GCC 3.3
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@359 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index ea54458..23eb97c 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -22,15 +22,17 @@ endif
ifeq ($(ISX86),1)
-GCC33_OR_LATER = $(shell $(CXX) --version 2>&1 | $(EGREP) -c "\(GCC\) (3.[3-9]|[4-9])")
+GCC34_OR_LATER = $(shell $(CXX) --version 2>&1 | $(EGREP) -c "\(GCC\) (3.[4-9]|[4-9])")
GCC42_OR_LATER = $(shell $(CXX) --version 2>&1 | $(EGREP) -c "\(GCC\) (4.[2-9]|[5-9])")
INTEL_COMPILER = $(shell $(CXX) --version 2>&1 | $(EGREP) -c "\(ICC\)")
GAS210_OR_LATER = $(shell echo "" | $(AS) -v 2>&1 | $(EGREP) -c "GNU assembler version (2.[1-9][0-9]|[3-9])")
-ifneq ($(GCC33_OR_LATER) $(INTEL_COMPILER),0 0)
+ifneq ($(GCC34_OR_LATER) $(INTEL_COMPILER),0 0)
ifneq ($(GCC42_OR_LATER),0)
CXXFLAGS += -march=native -mtune=native
else
+# -msse2 is in GCC 3.3, but it causes internal compiler error on salsa.cpp,
+# so don't use it unless we're at GCC 3.4 or later
CXXFLAGS += -msse2
endif
endif