mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
9531d560cf
Detect ancient GCC specifically, rather than using target architecture as a crude heuristic. Side note: compilers should really ignore -Wno- and -Wno-error= flags they don't recognize. Seems like modern compilers produce warnings instead of errors. Though, with -Werror they turn into errors. Clang's error can be disabled with -Wno-error=unknown-warning-option, but GCC doesn't seem to have a named method to disable the specific warning. Submitted by: rpokala@ (earlier version) Suggested by: rpokala@ Reviewed by: tinderbox Sponsored by: Dell EMC Isilon
26 lines
513 B
Makefile
26 lines
513 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
|
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PROG= trpt
|
|
MAN= trpt.8
|
|
BINGRP= kmem
|
|
BINMODE= 2555
|
|
|
|
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} < 50000
|
|
WARNS?= 4
|
|
.endif
|
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
CFLAGS+= -DINET6
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.if ${COMPILER_TYPE} != "gcc" || ${COMPILER_VERSION} >= 50000
|
|
# Several included system headers tickle this warning in ways that are
|
|
# difficult to work around in this program.
|
|
CFLAGS+= -Wno-missing-variable-declarations
|
|
.endif
|