summaryrefslogtreecommitdiff
path: root/net/freeradius/hacks.mk
diff options
context:
space:
mode:
Diffstat (limited to 'net/freeradius/hacks.mk')
-rw-r--r--net/freeradius/hacks.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/freeradius/hacks.mk b/net/freeradius/hacks.mk
new file mode 100644
index 00000000000..ee2a3ee6b4f
--- /dev/null
+++ b/net/freeradius/hacks.mk
@@ -0,0 +1,14 @@
+# $NetBSD: hacks.mk,v 1.1.2.2 2020/09/18 18:23:39 bsiegert Exp $
+
+.if !defined(FREERADIUS_HACKS_MK)
+FREERADIUS_HACKS_MK= defined
+
+# [Mon Sep 7 20:40:36 CEST 2020 : he]
+# On NetBSD/powerpc, we don't have native 8-byte atomics,
+# but this package insists on using them, so here we need libatomic.
+.if ${MACHINE_ARCH} == "powerpc"
+PKG_HACKS+= powerpc-libatomic
+.include "../../devel/libatomic/buildlink3.mk"
+.endif
+
+.endif # FREERADIUS_HACKS_MK