summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2022-08-05 14:08:50 +0000
committerhe <he@pkgsrc.org>2022-08-05 14:08:50 +0000
commita88a70bfae59a858454b9bf66a40219d4ca40db7 (patch)
treea556baa16484fc33fe55125fece7542d66135def /net
parent2d3e419e61b5e96d342140280b9ce3e055b84461 (diff)
downloadpkgsrc-a88a70bfae59a858454b9bf66a40219d4ca40db7.tar.gz
net/dnsdist: make this build on powerpc where -latomic is needed.
Diffstat (limited to 'net')
-rw-r--r--net/dnsdist/hacks.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/dnsdist/hacks.mk b/net/dnsdist/hacks.mk
new file mode 100644
index 00000000000..0c950c93919
--- /dev/null
+++ b/net/dnsdist/hacks.mk
@@ -0,0 +1,14 @@
+# $NetBSD: hacks.mk,v 1.1 2022/08/05 14:08:50 he Exp $
+
+.if !defined(NET_DNSDIST_HACKS_MK)
+NET_DNSDIST_HACKS_MK= defined
+
+# [Fri Aug 5 14:57:31 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_DNSDIST_HACKS_MK