Skip to content

Commit ac8af9c

Browse files
authored
Add -msse where supported, apparently required for older gcc
1 parent 10379fc commit ac8af9c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Makefile.x86

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,19 @@ LIBATLAS = -L$(ATLASPATH)/32 -lcblas -lf77blas -latlas -lm
5454
else
5555
LIBATLAS = -L$(ATLASPATH)/32 -lptf77blas -lptatlas -lpthread -lm
5656
endif
57+
58+
ifdef HAVE_SSE3
59+
ifndef DYNAMIC_ARCH
60+
CCOMMON_OPT += -msse3
61+
FCOMMON_OPT += -msse3
62+
ifdef HAVE_SSSE3
63+
CCOMMON_OPT += -mssse3
64+
FCOMMON_OPT += -mssse3
65+
endif
66+
ifdef HAVE_SSE4_1
67+
CCOMMON_OPT += -msse4.1
68+
FCOMMON_OPT += -msse4.1
69+
endif
70+
endif
71+
endif
72+

0 commit comments

Comments
 (0)