From 987847e500b919e7c9efffffd0b0ab697ecf1ab3 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Fri, 3 Sep 2021 21:09:28 -0700 Subject: math/oink: Take back BROKEN_i386, instead attempt to fix on i386 ... by correcting the port patch. It had ifdef(__amd64__) for the mfence() function, but __i386__ was missing. This is likely why it is breaking on i386. --- math/oink/Makefile | 2 -- math/oink/files/patch-src_lace.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'math') diff --git a/math/oink/Makefile b/math/oink/Makefile index 4e366d421d1d..0acc7592419d 100644 --- a/math/oink/Makefile +++ b/math/oink/Makefile @@ -12,8 +12,6 @@ COMMENT= Modern parity game solvers written in C++ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_i386= error: use of undeclared identifier 'mfence' - LIB_DEPENDS= libboost_iostreams.so:devel/boost-libs USES= cmake:testing diff --git a/math/oink/files/patch-src_lace.h b/math/oink/files/patch-src_lace.h index 86d901ac1df4..f456cff65c0f 100644 --- a/math/oink/files/patch-src_lace.h +++ b/math/oink/files/patch-src_lace.h @@ -4,7 +4,7 @@ #endif #ifndef mfence -+#ifdef __amd64__ ++#if defined(__amd64__) || defined(__i386__) #define mfence() { asm volatile("mfence" ::: "memory"); } +#elif defined(__powerpc__) +#define mfence() { asm volatile("sync" ::: "memory"); } -- cgit v1.2.3