git: 5f0b74016b75 - 2023Q1 - sysutils/doinkd: Fix build with LLVM15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 11 Feb 2023 14:57:21 UTC
The branch 2023Q1 has been updated by cy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5f0b74016b75310ad3740fbf8ceea02bbd7fff55
commit 5f0b74016b75310ad3740fbf8ceea02bbd7fff55
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2023-02-10 14:38:57 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2023-02-11 14:56:24 +0000
sysutils/doinkd: Fix build with LLVM15
(cherry picked from commit 12b2f409dd9b3e7450377217baa97f6a21407a52)
---
sysutils/doinkd/files/patch-Makefile | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/sysutils/doinkd/files/patch-Makefile b/sysutils/doinkd/files/patch-Makefile
index 28faa938c598..3d1a3418bcaa 100644
--- a/sysutils/doinkd/files/patch-Makefile
+++ b/sysutils/doinkd/files/patch-Makefile
@@ -1,5 +1,5 @@
---- Makefile.orig 2006-05-30 00:19:28.000000000 -0700
-+++ Makefile 2014-06-03 18:33:50.171999588 -0700
+--- Makefile.orig 2006-06-02 12:15:31.000000000 -0700
++++ Makefile 2023-02-10 06:37:55.103169000 -0800
@@ -2,8 +2,8 @@
#
@@ -60,7 +60,7 @@
######################################################################
######################################################################
-@@ -450,7 +451,7 @@
+@@ -450,13 +451,13 @@
PMAN = doinkd.8
# Names of config and log files
@@ -69,6 +69,13 @@
LOGFILE = ${LOGDEST}/doinkd.log
# HERE are the big CFLAGS
+ # Add -g if you want debugging
+ # Add -O or whatever variant for optimization
+-CFLAGS = ${DEFS} ${DEBUG} -DCONFIG=\"${CONFIG}\" -DLOGFILE=\"${LOGFILE}\" ${INCLUDE}
++CFLAGS = ${DEFS} ${DEBUG} -DCONFIG=\"${CONFIG}\" -DLOGFILE=\"${LOGFILE}\" ${INCLUDE} -Wno-deprecated-non-prototype -Wno-parentheses -Wno-implicit-function-declaration -Wno-format -Wno-int-conversion
+
+ # For HP's ANSI C compiler (use -g instead of +O3 for debugging)
+ # CFLAGS = +O3 -Aa -D_HPUX_SOURCE ${DEFS} ${DEBUG} -DCONFIG=\"${CONFIG}\" -DLOGFILE=\"${LOGFILE}\" ${INCLUDE}
@@ -509,11 +510,11 @@
# BSD like, but with some enhancements like: install -s -> strip binary
# gzip manual pages