diff options
author | Martin Kroeker <martin@ruby.chemie.uni-freiburg.de> | 2020-10-15 19:06:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-15 19:06:45 +0200 |
commit | ac8af9cec6e9c391f9047992c15454db8ada1821 (patch) | |
tree | 1a5f511b9da2b8084a3d1e3f0dba778a46bf8a39 /Makefile.x86 | |
parent | 10379fc83baced749a2e4f881daa923d9361df26 (diff) | |
download | openblas-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.x86 | 16 |
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 + |