aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/ping
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/ping')
-rw-r--r--sbin/ping/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/ping/Makefile b/sbin/ping/Makefile
index 12f00ffe5d1f..8308528ad2e9 100644
--- a/sbin/ping/Makefile
+++ b/sbin/ping/Makefile
@@ -11,7 +11,9 @@ BINMODE=4555
WARNS?= 3
LIBADD= m
-.if ${MK_CASPER} != "no" && !defined(RESCUE)
+.if ${MK_DYNAMICROOT} == "no"
+.warning ${PROG} built without libcasper support
+.elif ${MK_CASPER} != "no" && !defined(RESCUE)
LIBADD+= casper
LIBADD+= cap_dns
CFLAGS+=-DWITH_CASPER