Disable savecore(8)'s libcasper support when WITHOUT_DYNAMICROOT=yes.

This follows the example of other Capsicumized programs in /sbin.

Reported by:	Manfred Antar <manfredantar@gmail.com>
MFC with:	r342699
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
markj 2019-01-04 19:20:19 +00:00
parent 9b56128030
commit 5f4a081625

View File

@ -11,7 +11,9 @@ MAN= savecore.8
.include <src.opts.mk>
.if ${MK_CASPER} != "no" && !defined(RESCUE)
.if ${MK_DYNAMICROOT} == "no"
.warning ${PROG} built without libcasper support
.elif ${MK_CASPER} != "no" && !defined(RESCUE)
CFLAGS+= -DWITH_CASPER
LIBADD+= casper cap_fileargs cap_syslog
.endif