1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

devel/folly: fix build on powerpc64

QuotientMultiSet doesn't work on big-endian architectures.

Approved by:	tier 2 blanket
MFH:		2021Q1
This commit is contained in:
Piotr Kubaj 2021-03-06 00:27:50 +00:00
parent 2a95672028
commit abcb155334
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=567444
2 changed files with 13 additions and 0 deletions

View File

@ -36,6 +36,7 @@ CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_OFF= FREEBSD_BUILD_EXAMPLES FREEBSD_FOLLY_USE_SYMBOLIZER # enabling symbolizer causes undefined symbol _r_debug, see https://github.com/facebook/folly/issues/1373
CXXFLAGS+= -fPIC
CXXFLAGS_powerpc64= -DFOLLY_QUOTIENT_MULTI_SET_SUPPORTED=0
do-test:
@cd ${BUILD_WRKSRC} && \

View File

@ -0,0 +1,12 @@
--- folly/experimental/QuotientMultiSet.h.orig 2021-03-06 00:00:24 UTC
+++ folly/experimental/QuotientMultiSet.h
@@ -26,7 +26,9 @@
#include <folly/io/IOBufQueue.h>
// A 128-bit integer type is needed for fast division.
+#ifndef FOLLY_QUOTIENT_MULTI_SET_SUPPORTED
#define FOLLY_QUOTIENT_MULTI_SET_SUPPORTED FOLLY_HAVE_INT128_T
+#endif
#if FOLLY_QUOTIENT_MULTI_SET_SUPPORTED