aboutsummaryrefslogtreecommitdiff
path: root/sbin/savecore/Makefile
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2019-01-04 19:20:19 +0000
committerMark Johnston <markj@FreeBSD.org>2019-01-04 19:20:19 +0000
commit0fadd6731f1d072f9c6891f7b4f3fed0ba3436b0 (patch)
treec9e5dbe5519aa40444964b54d0854e5c2e117e02 /sbin/savecore/Makefile
parentf2c79297ebf6d7022e7b4d6f8d4487f5ba45ce99 (diff)
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
Notes
Notes: svn path=/head/; revision=342776
Diffstat (limited to 'sbin/savecore/Makefile')
-rw-r--r--sbin/savecore/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/savecore/Makefile b/sbin/savecore/Makefile
index 384af1370ec4..172df7e857bc 100644
--- a/sbin/savecore/Makefile
+++ b/sbin/savecore/Makefile
@@ -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