aboutsummaryrefslogtreecommitdiff
path: root/math/cado-nfs
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-12-07 09:08:00 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2021-12-07 09:08:00 +0000
commit7b6d73be47f49ffb343c0f607c42355b099ff876 (patch)
treefc9f6e0da378dacffe15697929256241fa5ef0a6 /math/cado-nfs
parent8d7003b2986497b89210590b6ed155cd5f69ccee (diff)
downloadports-7b6d73be47f49ffb343c0f607c42355b099ff876.tar.gz
ports-7b6d73be47f49ffb343c0f607c42355b099ff876.zip
math/cado-nfs: Fix build on i386
Reported by: fallout
Diffstat (limited to 'math/cado-nfs')
-rw-r--r--math/cado-nfs/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/cado-nfs/Makefile b/math/cado-nfs/Makefile
index 56e6d775224f..f4b2642a1811 100644
--- a/math/cado-nfs/Makefile
+++ b/math/cado-nfs/Makefile
@@ -40,4 +40,8 @@ PLIST_SUB= LINGEN_PZ=""
PLIST_SUB= LINGEN_PZ="@comment "
.endif
+.if ${ARCH} == "i386"
+CXXFLAGS+= -msse2 # workaround for error: always_inline function '_mm_setzero_si128' requires target feature 'sse2', but would be inlined into function 'gf2x_mul4' that is compiled without support for 'sse2'
+.endif
+
.include <bsd.port.mk>