Fix build on powerpc64
PR: 240088 Submitted by: pkubaj
This commit is contained in:
parent
eefe67ff83
commit
4b98557743
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=511027
2 changed files with 14 additions and 1 deletions
|
@ -14,7 +14,7 @@ COMMENT= Perl Interface to the Google LevelDB NoSQL database
|
|||
LICENSE= ART10 GPLv1+
|
||||
LICENSE_COMB= dual
|
||||
|
||||
NOT_FOR_ARCHS= aarch64 powerpc powerpc64 powerpcspe
|
||||
NOT_FOR_ARCHS= aarch64 powerpc powerpcspe
|
||||
NOT_FOR_ARCHS_REASON= does not build: Please implement AtomicPointer for this platform
|
||||
BROKEN_sparc64= does not build: unrecognized command line options
|
||||
|
||||
|
@ -29,6 +29,8 @@ MAKE_ARGS= CC="${CXX}"
|
|||
|
||||
.if ${CHOSEN_COMPILER_TYPE} == clang
|
||||
CFLAGS+= -Wno-reserved-user-defined-literal
|
||||
.else
|
||||
CFLAGS+= -DLEVELDB_CSTDATOMIC_PRESENT
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
|
|
11
databases/p5-Tie-LevelDB/files/patch-port-atomic_pointer.h
Normal file
11
databases/p5-Tie-LevelDB/files/patch-port-atomic_pointer.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- port/atomic_pointer.h.orig 2019-08-25 00:44:43 UTC
|
||||
+++ port/atomic_pointer.h
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#ifdef LEVELDB_CSTDATOMIC_PRESENT
|
||||
-#include <cstdatomic>
|
||||
+#include <atomic>
|
||||
#endif
|
||||
#ifdef OS_WIN
|
||||
#include <windows.h>
|
Loading…
Reference in a new issue