Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Oct 2020 17:28:58 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r553629 - head/graphics/s2
Message-ID:  <202010291728.09THSwOs098304@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Thu Oct 29 17:28:57 2020
New Revision: 553629
URL: https://svnweb.freebsd.org/changeset/ports/553629

Log:
  graphics/s2: fix build on powerpc64
  
  Specifically optimize for POWER7 or later:
  /wrkdirs/usr/ports/graphics/s2/work/s2geometry-0.9.0/src/s2/util/bits/bits.h:509:19: error: this builtin is only valid on POWER7 or later CPUs
    uint64 result = __builtin_bpermd(0x3f3e3d3c3b3a3938, temp);

Modified:
  head/graphics/s2/Makefile

Modified: head/graphics/s2/Makefile
==============================================================================
--- head/graphics/s2/Makefile	Thu Oct 29 16:57:21 2020	(r553628)
+++ head/graphics/s2/Makefile	Thu Oct 29 17:28:57 2020	(r553629)
@@ -34,6 +34,8 @@ GFLAGS_LIB_DEPENDS=	libgflags.so:devel/gflags
 GLOG_CMAKE_BOOL=	WITH_GLOG
 GLOG_LIB_DEPENDS=	libglog.so:devel/glog
 
+CXXFLAGS_powerpc64=	-mcpu=power7
+
 post-install-EXAMPLES-on:
 	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/examples/point_index ${INSTALL_WRKSRC}/examples/term_index ${STAGEDIR}${EXAMPLESDIR}



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