aboutsummaryrefslogtreecommitdiff
path: root/irc/thales
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2020-09-01 08:51:51 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2020-09-01 08:51:51 +0000
commitfe0a40a4844310388230ea2eb4248a7e6d82b777 (patch)
tree34abecd4a07cd5b72b0bdebc66038013273779f8 /irc/thales
parent9c2505d033c48a276df5dc431e2d06a099a51a61 (diff)
downloadports-fe0a40a4844310388230ea2eb4248a7e6d82b777.tar.gz
ports-fe0a40a4844310388230ea2eb4248a7e6d82b777.zip
Unbreak the build with -fno-common (Clang 11, GCC 10).
Reported by: pkg-fallout
Notes
Notes: svn path=/head/; revision=547248
Diffstat (limited to 'irc/thales')
-rw-r--r--irc/thales/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/irc/thales/Makefile b/irc/thales/Makefile
index 7a2e6c28657d..732b36344937 100644
--- a/irc/thales/Makefile
+++ b/irc/thales/Makefile
@@ -41,6 +41,9 @@ post-patch: .SILENT
${FIND} -d ${WRKSRC} -type d -name CVS -exec ${RM} -r {} \;
${REINPLACE_CMD} -e 's,thales.conf,${PREFIX}/etc/&,' \
${WRKSRC}/src/conf.h
+# Fix the build with -fno-common (for Clang 11 and GCC 10)
+ ${REINPLACE_CMD} -e '/total_read, total_written/s,^,extern ,' \
+ ${WRKSRC}/src/sockutil.h
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}