svn commit: r547248 - head/irc/thales

Alexey Dokuchaev danfe at FreeBSD.org
Tue Sep 1 08:51:52 UTC 2020


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}


More information about the svn-ports-all mailing list