From 5e82ad37c5263967e9a62b36150a0205678be7f6 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Thu, 29 Oct 2020 17:28:57 +0000 Subject: 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); --- graphics/s2/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'graphics/s2') diff --git a/graphics/s2/Makefile b/graphics/s2/Makefile index 5b8d316e062d..cb9afa2d64a4 100644 --- a/graphics/s2/Makefile +++ b/graphics/s2/Makefile @@ -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} -- cgit v1.2.3