mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
![Conrad Meyer](/assets/img/avatar_default.png)
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
|