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:
Mark Johnston 2019-01-04 19:20:19 +00:00
parent f2c79297eb
commit 0fadd6731f

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