--- Makefile +++ Makefile @@ -15,7 +15,7 @@ LICENSE= BSD3CLAUSE CFLAGS+= -DGOOGLE_PROTOBUF_NO_RTTI GNU_CONFIGURE= yes INSTALL_TARGET= install-strip -ONLY_FOR_ARCHS= amd64 i386 +ONLY_FOR_ARCHS= amd64 i386 armv6 USE_LDCONFIG= yes USES= gmake libtool pathfix pkgconfig tar:bzip2 --- /dev/null +++ files/patch-src_google_protobuf_stubs_atomicops.h @@ -0,0 +1,11 @@ +--- src/google/protobuf/stubs/atomicops.h.orig 2015-01-28 16:53:51 UTC ++++ src/google/protobuf/stubs/atomicops.h +@@ -182,6 +182,8 @@ GOOGLE_PROTOBUF_ATOMICOPS_ERROR + #elif defined(__GNUC__) + #if defined(GOOGLE_PROTOBUF_ARCH_IA32) || defined(GOOGLE_PROTOBUF_ARCH_X64) + #include ++#elif defined(GOOGLE_PROTOBUF_ARCH_ARM) && defined(__FreeBSD__) ++#include + #elif defined(GOOGLE_PROTOBUF_ARCH_ARM) && defined(__linux__) + #include + #elif defined(GOOGLE_PROTOBUF_ARCH_AARCH64) diff --git a/./files/patch-src_google_protobuf_stubs_atomicops__internals__generic__gcc.h b/./files/patch-src_google_protobuf_stubs_atomicops__internals__generic__gcc.h new file mode 100644 index 0000000..2047c01 --- /dev/null +++ files/patch-src_google_protobuf_stubs_atomicops__internals__generic__gcc.h @@ -0,0 +1,20 @@ +--- src/google/protobuf/stubs/atomicops_internals_generic_gcc.h.orig 2015-01-28 17:16:36 UTC ++++ src/google/protobuf/stubs/atomicops_internals_generic_gcc.h +@@ -83,7 +83,7 @@ inline void MemoryBarrier() { + } + + inline void Acquire_Store(volatile Atomic32* ptr, Atomic32 value) { +- __atomic_store_n(ptr, value, __ATOMIC_ACQUIRE); ++ __atomic_store_n(ptr, value, __ATOMIC_SEQ_CST); + } + + inline void Release_Store(volatile Atomic32* ptr, Atomic32 value) { +@@ -99,7 +99,7 @@ inline Atomic32 Acquire_Load(volatile co + } + + inline Atomic32 Release_Load(volatile const Atomic32* ptr) { +- return __atomic_load_n(ptr, __ATOMIC_RELEASE); ++ return __atomic_load_n(ptr, __ATOMIC_SEQ_CST); + } + + #ifdef __LP64__