summaryrefslogtreecommitdiff
path: root/Makefile.x86
diff options
context:
space:
mode:
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>2020-10-15 19:06:45 +0200
committerGitHub <noreply@github.com>2020-10-15 19:06:45 +0200
commitac8af9cec6e9c391f9047992c15454db8ada1821 (patch)
tree1a5f511b9da2b8084a3d1e3f0dba778a46bf8a39 /Makefile.x86
parent10379fc83baced749a2e4f881daa923d9361df26 (diff)
downloadopenblas-ac8af9cec6e9c391f9047992c15454db8ada1821.tar.gz
openblas-ac8af9cec6e9c391f9047992c15454db8ada1821.tar.bz2
openblas-ac8af9cec6e9c391f9047992c15454db8ada1821.zip
Add -msse where supported, apparently required for older gcc
Diffstat (limited to 'Makefile.x86')
-rw-r--r--Makefile.x8616
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile.x86 b/Makefile.x86
index a6196d365..330690935 100644
--- a/Makefile.x86
+++ b/Makefile.x86
@@ -54,3 +54,19 @@ LIBATLAS = -L$(ATLASPATH)/32 -lcblas -lf77blas -latlas -lm
else
LIBATLAS = -L$(ATLASPATH)/32 -lptf77blas -lptatlas -lpthread -lm
endif
+
+ifdef HAVE_SSE3
+ifndef DYNAMIC_ARCH
+CCOMMON_OPT += -msse3
+FCOMMON_OPT += -msse3
+ifdef HAVE_SSSE3
+CCOMMON_OPT += -mssse3
+FCOMMON_OPT += -mssse3
+endif
+ifdef HAVE_SSE4_1
+CCOMMON_OPT += -msse4.1
+FCOMMON_OPT += -msse4.1
+endif
+endif
+endif
+