From 0fadd6731f1d072f9c6891f7b4f3fed0ba3436b0 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Fri, 4 Jan 2019 19:20:19 +0000 Subject: Disable savecore(8)'s libcasper support when WITHOUT_DYNAMICROOT=yes. This follows the example of other Capsicumized programs in /sbin. Reported by: Manfred Antar MFC with: r342699 Sponsored by: The FreeBSD Foundation --- sbin/savecore/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sbin/savecore/Makefile') 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 -.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 -- cgit v1.2.3