From 7443063da38967e51f07822f9904327326f02c20 Mon Sep 17 00:00:00 2001 From: avos Date: Fri, 15 Mar 2019 08:21:11 +0000 Subject: [PATCH] MFC r344748: Allow to build ifconfig(8) without wireless support The change removes SIOC[GS]IEEE80211 handling from ifconfig(8) if WITHOUT_WIRELESS_SUPPORT=yes is set in src.conf(5). Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D19289 git-svn-id: svn://svn.freebsd.org/base/stable/10@345174 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sbin/ifconfig/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sbin/ifconfig/Makefile b/sbin/ifconfig/Makefile index 84509d7ea..d27b9907f 100644 --- a/sbin/ifconfig/Makefile +++ b/sbin/ifconfig/Makefile @@ -39,9 +39,11 @@ SRCS+= sfp.c # SFP/SFP+ information DPADD+= ${LIBM} LDADD+= -lm +.if ${MK_WIRELESS_SUPPORT} != "no" SRCS+= ifieee80211.c regdomain.c # SIOC[GS]IEEE80211 support DPADD+= ${LIBBSDXML} ${LIBSBUF} LDADD+= -lbsdxml -lsbuf +.endif SRCS+= carp.c # SIOC[GS]VH support SRCS+= ifgroup.c # ... -- 2.45.0