de11d87641
GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8) GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8) GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8) GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8) use these to turn off warnings for most GCC-8 complaints. many of these are false positives, most of the real bugs are already commited, or are yet to come. we plan to introduce versions of (some?) of these that use the "-Wno-error=" form, which still displays the warnings but does not make it an error, and all of the above will be re-considered as either being "fix me" (warning still displayed) or "warning is wrong."
37 lines
909 B
Makefile
37 lines
909 B
Makefile
# $NetBSD: Makefile,v 1.30 2019/10/13 07:28:22 mrg Exp $
|
|
# from: @(#)Makefile 8.1 (Berkeley) 6/6/93
|
|
.include <bsd.own.mk>
|
|
|
|
WARNS?=4
|
|
USE_FORT?= yes # network server
|
|
|
|
LINTFLAGS+=-X 132,247,135,259,117,298
|
|
|
|
PROG= syslogd
|
|
SRCS= syslogd.c utmpentry.c tls.c sign.c
|
|
MAN= syslogd.8 syslog.conf.5
|
|
DPADD+=${LIBUTIL} ${LIBEVENT}
|
|
LDADD+=-lutil -levent
|
|
#make symlink to old socket location for transitional period
|
|
SYMLINKS= /var/run/log /dev/log
|
|
.PATH.c: ${NETBSDSRCDIR}/usr.bin/who
|
|
CPPFLAGS+=-I${NETBSDSRCDIR}/usr.bin/who -DSUPPORT_UTMPX -DSUPPORT_UTMP -Wredundant-decls
|
|
|
|
.if (${USE_INET6} != "no")
|
|
CPPFLAGS+=-DINET6
|
|
.endif
|
|
|
|
CPPFLAGS+=-DLIBWRAP
|
|
.if ${HAVE_OPENSSL} < 11
|
|
CPPFLAGS+=-DOPENSSL_API_COMPAT=0x10100000L
|
|
.endif
|
|
LDADD+= -lwrap
|
|
DPADD+= ${LIBWRAP}
|
|
|
|
LDADD+= -lssl -lcrypto
|
|
|
|
# Overflow that appears impossible
|
|
COPTS.syslogd.c+= ${GCC_NO_FORMAT_TRUNCATION} ${GCC_NO_STRINGOP_TRUNCATION}
|
|
|
|
.include <bsd.prog.mk>
|