aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dhclient/Makefile')
-rw-r--r--sbin/dhclient/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/dhclient/Makefile b/sbin/dhclient/Makefile
index dbba0d41226a..99b749eb720f 100644
--- a/sbin/dhclient/Makefile
+++ b/sbin/dhclient/Makefile
@@ -44,7 +44,9 @@ MAN= dhclient.8 dhclient.conf.5 dhclient.leases.5 dhcp-options.5 \
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