Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Apr 2021 23:38:15 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: 9845a1e63225 - main - audio/madronalib: fix build on powerpc64le
Message-ID:  <202104192338.13JNcFUt045095@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=9845a1e63225422659da4c51d9deee1e8bafe0a1

commit 9845a1e63225422659da4c51d9deee1e8bafe0a1
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-04-19 23:38:12 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-04-19 23:38:12 +0000

    audio/madronalib: fix build on powerpc64le
    
    Use GCC with its SSE translation:
    In file included from /wrkdirs/usr/ports/audio/madronalib/work/madronalib-1.6-1016-g103895f/source/DSP/MLDSPMathSSE.h:32:
    In file included from /usr/lib/clang/11.0.1/include/emmintrin.h:13:
    In file included from /usr/lib/clang/11.0.1/include/xmmintrin.h:13:
    /usr/lib/clang/11.0.1/include/mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
        __builtin_ia32_emms();
---
 audio/madronalib/Makefile | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/audio/madronalib/Makefile b/audio/madronalib/Makefile
index 705f41c40013..40642b803f26 100644
--- a/audio/madronalib/Makefile
+++ b/audio/madronalib/Makefile
@@ -13,11 +13,20 @@ BROKEN_i386=	error: always_inline function '_mm_load_ps' requires target feature
 
 LIB_DEPENDS=	libjack.so:audio/jack
 
-USES=		cmake compiler:c++11-lib localbase:ldflags perl5
+USES=		cmake localbase:ldflags perl5
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	madronalabs
 
 CMAKE_ON=	LINUX_JACK
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64le
+CXXFLAGS+=	-DNO_WARN_X86_INTRINSICS
+USES+=		compiler:gcc-c++11-lib
+.else
+USES+=		compiler:c++11-lib
+.endif
+
 .include <bsd.port.mk>



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