git: 98813d7cc590 - main - math/pffft: Fix build on i386
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 10 Feb 2022 09:21:13 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=98813d7cc5906863d6f2624de70507c7f7264ec1 commit 98813d7cc5906863d6f2624de70507c7f7264ec1 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2022-02-10 09:20:27 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-02-10 09:21:11 +0000 math/pffft: Fix build on i386 Reported by: fallout --- math/pffft/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/math/pffft/Makefile b/math/pffft/Makefile index 1ed5f334b7d8..2835b89796ef 100644 --- a/math/pffft/Makefile +++ b/math/pffft/Makefile @@ -17,9 +17,15 @@ GH_TAGNAME= 9603871 CMAKE_ON= BUILD_SHARED_LIBS INSTALL_PFDSP INSTALL_PFFASTCONV +.include <bsd.port.pre.mk> + +.if ${ARCH} == i386 +CXXFLAGS+= -msse2 # fixes error: always_inline function '_mm_unpacklo_ps' requires target feature 'sse', but would be inlined into function 'pffft_zreorder' that is compiled without support for 'sse' +.endif + post-install: # move headers into a dedicated directory cd ${STAGEDIR}${PREFIX} && \ ${MKDIR} include/${PORTNAME} && \ ${MV} include/*.h include/*.hpp include/${PORTNAME} -.include <bsd.port.mk> +.include <bsd.port.post.mk>