svn commit: r569399 - head/biology/vcflib

Piotr Kubaj pkubaj at FreeBSD.org
Sun Mar 28 16:39:25 UTC 2021


Author: pkubaj
Date: Sun Mar 28 16:39:24 2021
New Revision: 569399
URL: https://svnweb.freebsd.org/changeset/ports/569399

Log:
  biology/vcflib: fix build on powerpc64le
  
  Use GCC for its SSE -> AltiVec translation:
  In file included from src/ssw.cpp:38:
  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();

Modified:
  head/biology/vcflib/Makefile

Modified: head/biology/vcflib/Makefile
==============================================================================
--- head/biology/vcflib/Makefile	Sun Mar 28 14:28:34 2021	(r569398)
+++ head/biology/vcflib/Makefile	Sun Mar 28 16:39:24 2021	(r569399)
@@ -44,6 +44,13 @@ CFLAGS_i386=	-msse2
 MAKEFILE=	${FILESDIR}/Makefile.external-libs
 INSTALL_TARGET=	install-strip
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64le
+CFLAGS+=	-DNO_WARN_X86_INTRINSICS
+USES+=		compiler:gcc-c++11-lib 
+.endif
+
 post-install:
 	${RLN} ${STAGEDIR}${PREFIX}/lib/libvcflib.so.1 \
 		${STAGEDIR}${PREFIX}/lib/libvcflib.so


More information about the svn-ports-head mailing list