svn commit: r546244 - head/sysutils/nvclock
Alexey Dokuchaev
danfe at FreeBSD.org
Wed Aug 26 03:28:08 UTC 2020
Author: danfe
Date: Wed Aug 26 03:28:07 2020
New Revision: 546244
URL: https://svnweb.freebsd.org/changeset/ports/546244
Log:
Unbreak the build with -fno-common (Clang 11, GCC 10).
Reported by: pkg-fallout
Modified:
head/sysutils/nvclock/Makefile
Modified: head/sysutils/nvclock/Makefile
==============================================================================
--- head/sysutils/nvclock/Makefile Wed Aug 26 01:55:20 2020 (r546243)
+++ head/sysutils/nvclock/Makefile Wed Aug 26 03:28:07 2020 (r546244)
@@ -48,5 +48,8 @@ post-patch:
${WRKSRC}/src/qt/Makefile.in
@${REINPLACE_CMD} 's/-lnvcontrol/& @X11_LIBS@/' \
${WRKSRC}/src/gtk/Makefile.in
+# Fix the build with -fno-common (for Clang 11 and GCC 10)
+ @${REINPLACE_CMD} '/option_list/s,^,extern ,' \
+ ${WRKSRC}/src/nvcontrol/nvcontrol.h
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list