mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
2c208ed867
dhclient and ping normally use libcasper services. These are not available in statically-linked binaries, so when WITHOUT_DYNAMICROOT is set disable libcasper use, as with rescue builds. Also emit a warning as it's undesirable to build this way. Reported by: Michael Dexter Reviewed by: rgrimes Tested by: Michael Dexter Approved by: re (kib) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17074
28 lines
440 B
Makefile
28 lines
440 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
|
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PACKAGE=runtime
|
|
PROG= ping
|
|
MAN= ping.8
|
|
BINOWN= root
|
|
BINMODE=4555
|
|
WARNS?= 3
|
|
LIBADD= m
|
|
|
|
.if ${MK_DYNAMICROOT} == "no"
|
|
.warning ${PROG} built without libcasper support
|
|
.elif ${MK_CASPER} != "no" && !defined(RESCUE)
|
|
LIBADD+= casper
|
|
LIBADD+= cap_dns
|
|
CFLAGS+=-DWITH_CASPER
|
|
.endif
|
|
|
|
.if !defined(RELEASE_CRUNCH)
|
|
CFLAGS+=-DIPSEC
|
|
LIBADD+= ipsec
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|