diff options
Diffstat (limited to 'rules/protobuf.make')
-rw-r--r-- | rules/protobuf.make | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rules/protobuf.make b/rules/protobuf.make index 3725a1fb3..428774305 100644 --- a/rules/protobuf.make +++ b/rules/protobuf.make @@ -29,6 +29,17 @@ PROTOBUF_LICENSE := BSD New # Prepare # ---------------------------------------------------------------------------- +PROTOBUF_CONF_ENV := \ + $(CROSS_ENV) + +ifdef PTXCONF_ARCH_PPC +# protobuf-2.5.0 has no atomics for PPC +# abuse PTHREAD_* because those flags a propagated via protobuf.pc +PROTOBUF_CONF_ENV += \ + PTHREAD_LIBS="-lpthread" \ + PTHREAD_CFLAGS="-DGOOGLE_PROTOBUF_NO_THREAD_SAFETY" +endif + # # autoconf # |