summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2020-09-18 18:23:39 +0000
committerbsiegert <bsiegert@pkgsrc.org>2020-09-18 18:23:39 +0000
commita384b1279bb64dc0e6e346bf6537debe3b1e7a39 (patch)
tree04c6b634780b96cff115ca522daa7b5bf70eae6e
parentf00610939965d414e46fafdae74fc596a10e85f0 (diff)
downloadpkgsrc-a384b1279bb64dc0e6e346bf6537debe3b1e7a39.tar.gz
Pullup ticket #6324 - requested by he
net/freeradius: PowerPC build fix Revisions pulled up: - net/freeradius/hacks.mk 1.1 --- Module Name: pkgsrc Committed By: he Date: Sun Sep 13 18:56:29 UTC 2020 Added Files: pkgsrc/net/freeradius: hacks.mk Log Message: Use devel/libatomic on powerpc so that this package builds.
-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