summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorIsmael Luceno2020-11-21 19:24:01 +0100
committerIsmael Luceno2020-11-21 19:24:01 +0100
commitbe8e3298fdd0cec1ba6f54c076cfb9abb49346b5 (patch)
tree1d33bd6c21a663124f07f6f77a4a4dcec001fe4c /net
parent8bd621af5642f5293766478362d57bbba5efe873 (diff)
openntpd: Fix build with binutils 2.35+
Diffstat (limited to 'net')
-rwxr-xr-xnet/openntpd/BUILD4
-rw-r--r--net/openntpd/HISTORY3
2 files changed, 7 insertions, 0 deletions
diff --git a/net/openntpd/BUILD b/net/openntpd/BUILD
index 63800e9bc4..96497ba1cc 100755
--- a/net/openntpd/BUILD
+++ b/net/openntpd/BUILD
@@ -3,4 +3,8 @@ create_account ntp &&
OPTS="--with-privsep-user=ntp \
$OPTS" &&
+# Allow multiple definitions for ld.bfd, required with binutils 2.35+
+if ! is_version_less $(installed_version binutils) 2.35; then
+ LDFLAGS+=" -Wl,--allow-multiple-definition"
+fi &&
default_build
diff --git a/net/openntpd/HISTORY b/net/openntpd/HISTORY
index 31d85b49c5..b111c6f29e 100644
--- a/net/openntpd/HISTORY
+++ b/net/openntpd/HISTORY
@@ -1,3 +1,6 @@
+2020-11-21 Ismael Luceno <ismael@sourcemage.org>
+ * BUILD: fixed build with binutils 2.35+
+
2018-05-22 Ismael Luceno <ismael@sourcemage.org>
* DETAILS: updated spell to 6.2p3