summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorIsmael Luceno2022-11-08 17:57:22 +0100
committerIsmael Luceno2022-11-08 18:59:32 +0100
commit788f56efb1e22c63c598c6fcc8f73b98a611a1a1 (patch)
tree284ce4624dbcd5cbfd9f6bd304c077e99561528d /net
parent14fa4395da8d9d4af98fd1d33865d4f40b1756b6 (diff)
openntpd: Use -fcommon instead of -Wl,--allow-multiple-definition
Diffstat (limited to 'net')
-rwxr-xr-xnet/openntpd/BUILD6
-rw-r--r--net/openntpd/HISTORY3
2 files changed, 5 insertions, 4 deletions
diff --git a/net/openntpd/BUILD b/net/openntpd/BUILD
index 96497ba1cc..dfe3fde41f 100755
--- a/net/openntpd/BUILD
+++ b/net/openntpd/BUILD
@@ -3,8 +3,6 @@ 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 &&
+# Needed for GCC 10.x+
+CFLAGS+=" -fcommon" &&
default_build
diff --git a/net/openntpd/HISTORY b/net/openntpd/HISTORY
index 4caa147593..365ffc70ff 100644
--- a/net/openntpd/HISTORY
+++ b/net/openntpd/HISTORY
@@ -1,3 +1,6 @@
+2022-11-08 Ismael Luceno <ismael@sourcemage.org>
+ * BUILD: Use -fcommon instead of -Wl,--allow-multiple-definition
+
2021-05-10 Vlad Glagolev <stealth@sourcemage.org>
* DETAILS: updated spell to 6.8p1