From fe0a40a4844310388230ea2eb4248a7e6d82b777 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Tue, 1 Sep 2020 08:51:51 +0000 Subject: [PATCH] Unbreak the build with -fno-common (Clang 11, GCC 10). Reported by: pkg-fallout --- irc/thales/Makefile | 3 +++ 1 file changed, 3 insertions(+) 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}