Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jun 2022 12:05:07 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ed3faf606ebd - main - misc/cuttlefish: fix build on powerpc / powerpc64 / powerpc64le
Message-ID:  <202206261205.25QC57Hd066935@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ed3faf606ebd99dc872da324b8d70bfec753e0e8

commit ed3faf606ebd99dc872da324b8d70bfec753e0e8
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-06-26 12:04:00 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-06-26 12:04:59 +0000

    misc/cuttlefish: fix build on powerpc / powerpc64 / powerpc64le
    
    Disable SSE and use Altivec.
---
 misc/cuttlefish/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/misc/cuttlefish/Makefile b/misc/cuttlefish/Makefile
index a8416b1907f4..bb2633766b5f 100644
--- a/misc/cuttlefish/Makefile
+++ b/misc/cuttlefish/Makefile
@@ -32,4 +32,10 @@ CMAKE_OFF=	CUTTLEFISH_BUILD_DOCS CUTTLEFISH_BUILD_TESTS
 CMAKE_ON=	CUTTLEFISH_SHARED
 CMAKE_TESTING_ON=	CUTTLEFISH_BUILD_TESTS
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc || ${ARCH} == powerpc64 || ${ARCH} == powerpc64le
+CXXFLAGS+=	-DSQUISH_USE_ALTIVEC -DSQUISH_USE_SSE=0
+.endif
+
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206261205.25QC57Hd066935>