diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-10-29 17:28:57 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-10-29 17:28:57 +0000 |
commit | 5e82ad37c5263967e9a62b36150a0205678be7f6 (patch) | |
tree | a1876fa623ed51febd392ea940c0ab15130cd4c7 /graphics/s2 | |
parent | 7a538814e6c4ca6ddbf99532c0956f320e13a8af (diff) | |
download | ports-5e82ad37c5263967e9a62b36150a0205678be7f6.tar.gz ports-5e82ad37c5263967e9a62b36150a0205678be7f6.zip |
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);
Notes
Notes:
svn path=/head/; revision=553629
Diffstat (limited to 'graphics/s2')
-rw-r--r-- | graphics/s2/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
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} |