Index: head/sbin/dhclient/Makefile =================================================================== --- head/sbin/dhclient/Makefile +++ head/sbin/dhclient/Makefile @@ -44,7 +44,9 @@ dhclient-script.8 LIBADD= util -.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_syslog CFLAGS+=-DWITH_CASPER Index: head/sbin/ping/Makefile =================================================================== --- head/sbin/ping/Makefile +++ head/sbin/ping/Makefile @@ -11,7 +11,9 @@ 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