Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/protobuf On powerpc, which lacks native 8-byte a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/314f847ad8eb
branches:  trunk
changeset: 438674:314f847ad8eb
user:      he <he%pkgsrc.org@localhost>
date:      Tue Sep 08 08:35:23 2020 +0000

description:
On powerpc, which lacks native 8-byte atomics, use devel/libatomic.
Build fix on this platform only, so no revision bump.

diffstat:

 devel/protobuf/hacks.mk |  14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r 1af94867e356 -r 314f847ad8eb devel/protobuf/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/protobuf/hacks.mk   Tue Sep 08 08:35:23 2020 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: hacks.mk,v 1.1 2020/09/08 08:35:23 he Exp $
+
+.if !defined(PROTOBUF_HACKS_MK)
+PROTOBUF_HACKS_MK=     defined
+
+# [ Tue Sep  8 08:38:08 CEST 2020 : he ]
+# Bring -latomic into scope; build insists on it being available
+# on this platform (probably due to no native 8-byte atomics).
+.if !empty(MACHINE_ARCH:Mpowerpc*)
+.include "../../devel/libatomic/buildlink3.mk"
+PKG_HACKS+=    powerpc-libatomic
+.endif
+
+.endif # PROTOBUF_HACKS_MK



Home | Main Index | Thread Index | Old Index