pkgsrc-Changes-HG archive

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

[pkgsrc/pkgsrc-2020Q2]: pkgsrc/devel/protobuf Pullup ticket #6320 - requested...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4ee8fbb86b55
branches:  pkgsrc-2020Q2
changeset: 439354:4ee8fbb86b55
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Fri Sep 18 18:20:57 2020 +0000

description:
Pullup ticket #6320 - requested by he
devel/protobuf: PowerPC build fix

Revisions pulled up:
- devel/protobuf/hacks.mk                                       1.1

---
   Module Name: pkgsrc
   Committed By:        he
   Date:                Tue Sep  8 08:35:23 UTC 2020

   Added Files:
        pkgsrc/devel/protobuf: hacks.mk

   Log Message:
   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 b3e6a41e1101 -r 4ee8fbb86b55 devel/protobuf/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/protobuf/hacks.mk   Fri Sep 18 18:20:57 2020 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: hacks.mk,v 1.1.2.2 2020/09/18 18:20:57 bsiegert 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