Unbreak the build with -fno-common (Clang 11, GCC 10).

Reported by:	pkg-fallout
This commit is contained in:
Alexey Dokuchaev 2020-09-01 08:51:51 +00:00
parent 9c2505d033
commit fe0a40a484
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547248

View File

@ -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}