pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/isc-dhcp4 net/isc-dhcp4: add hacks.mk to use libat...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c9fc9fe6fae0
branches:  trunk
changeset: 382279:c9fc9fe6fae0
user:      he <he%pkgsrc.org@localhost>
date:      Sun Jul 24 19:52:41 2022 +0000

description:
net/isc-dhcp4: add hacks.mk to use libatomic on powerpc.

Fixes build problem on NetBSD/macppc when the internal libdns is built.

diffstat:

 net/isc-dhcp4/hacks.mk |  13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diffs (17 lines):

diff -r 528835e04e07 -r c9fc9fe6fae0 net/isc-dhcp4/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/isc-dhcp4/hacks.mk    Sun Jul 24 19:52:41 2022 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: hacks.mk,v 1.1 2022/07/24 19:52:41 he Exp $
+
+.if !defined(NET_DHCP4_HACKS_MK)
+NET_DHCP4__HACKS_MK=   defined
+
+# [Sun Jul 24 20:23:03 CEST 2022 : he]
+# On NetBSD/powerpc, use devel/libatomic to get 8-byte atomics.
+.if ${MACHINE_ARCH} == "powerpc" && ${OPSYS} == "NetBSD"
+PKG_HACKS+=    powerpc-atomics
+.include "../../devel/libatomic/buildlink3.mk"
+.endif
+
+.endif # NET_DHCP4_HACKS_MK



Home | Main Index | Thread Index | Old Index