summaryrefslogtreecommitdiff
path: root/sysutils/nvclock
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2020-08-26 03:28:07 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2020-08-26 03:28:07 +0000
commite01b25f1cafd2e141c61b1bab06380571e662bc3 (patch)
tree1adc69a3a33481c1a0ecd6f2d7665d4f913bf233 /sysutils/nvclock
parentdatabases/postgresql-orafce: Remove unwanted comment line in r546242 (diff)
Unbreak the build with -fno-common (Clang 11, GCC 10).
Reported by: pkg-fallout
Notes
Notes: svn path=/head/; revision=546244
Diffstat (limited to 'sysutils/nvclock')
-rw-r--r--sysutils/nvclock/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysutils/nvclock/Makefile b/sysutils/nvclock/Makefile
index 6696eb840f2a..24bbbef79e57 100644
--- a/sysutils/nvclock/Makefile
+++ b/sysutils/nvclock/Makefile
@@ -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>