diff options
author | Ed Maste <emaste@FreeBSD.org> | 2021-11-28 17:50:13 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2021-11-28 18:05:39 +0000 |
commit | a4ef9e58bc0c07110a54ba0fa88eb118c5377e6f (patch) | |
tree | d215cb61aeb0958c981ab3961ab78cb6ace671ed /sbin/Makefile | |
parent | b8cf1c5c30a5e6da4e2c9702ffd607a90453fb33 (diff) | |
download | src-a4ef9e58bc0c07110a54ba0fa88eb118c5377e6f.tar.gz src-a4ef9e58bc0c07110a54ba0fa88eb118c5377e6f.zip |
sbin: build ping if at least one of INET & INET6 is enabled
It does not build (and serves no purpose) if neither is true (i.e.,
building WITHOUT_INET and WITHOUT_INET6). Also add an explicit error
in ping to make this case clear.
PR: 260082
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sbin/Makefile')
-rw-r--r-- | sbin/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/Makefile b/sbin/Makefile index 7eb497e3e3dd..69cf51a83e26 100644 --- a/sbin/Makefile +++ b/sbin/Makefile @@ -53,7 +53,6 @@ SUBDIR=adjkerntz \ nfsiod \ nos-tun \ pfilctl \ - ping \ rcorder \ reboot \ recoverdisk \ @@ -68,6 +67,10 @@ SUBDIR=adjkerntz \ tunefs \ umount +.if ${MK_INET} != "no" || ${MK_INET6} != "no" +SUBDIR+= ping +.endif + SUBDIR.${MK_CCD}+= ccdconfig SUBDIR.${MK_CXX}+= devd SUBDIR.${MK_HAST}+= hastctl |