Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Sep 2020 08:51:52 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r547248 - head/irc/thales
Message-ID:  <202009010851.0818pqA2057136@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Tue Sep  1 08:51:51 2020
New Revision: 547248
URL: https://svnweb.freebsd.org/changeset/ports/547248

Log:
  Unbreak the build with -fno-common (Clang 11, GCC 10).
  
  Reported by:	pkg-fallout

Modified:
  head/irc/thales/Makefile

Modified: head/irc/thales/Makefile
==============================================================================
--- head/irc/thales/Makefile	Tue Sep  1 08:46:51 2020	(r547247)
+++ head/irc/thales/Makefile	Tue Sep  1 08:51:51 2020	(r547248)
@@ -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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009010851.0818pqA2057136>