From ae68fe8b6e9ff9f475a000ff6d5d290767f9a9fa Mon Sep 17 00:00:00 2001 From: kevans Date: Mon, 27 Aug 2018 19:34:50 +0000 Subject: [PATCH] Fix bsdbox build WITH_OFED hostapd requires libpcap, which links against libmlx5 and libibverbs when building WITH_OFED. These were not pulled in to bsdbox and most bsdbox builds were WITHOUT_OFED up until recently, so it was not noticed. Approved by: re (gjb) --- tools/bsdbox/Makefile.hostapd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/bsdbox/Makefile.hostapd b/tools/bsdbox/Makefile.hostapd index c0ea9c7c0d4..631643188bf 100644 --- a/tools/bsdbox/Makefile.hostapd +++ b/tools/bsdbox/Makefile.hostapd @@ -3,6 +3,7 @@ # # $FreeBSD$ # +.include CRUNCH_PROGS_usr.sbin+= hostapd hostapd_cli CRUNCH_SRCDIR_hostapd= $(.CURDIR)/../../usr.sbin/wpa/hostapd CRUNCH_SRCDIR_hostapd_cli= $(.CURDIR)/../../usr.sbin/wpa/hostapd_cli @@ -11,5 +12,9 @@ CRUNCH_SRCDIR_hostapd_cli= $(.CURDIR)/../../usr.sbin/wpa/hostapd_cli #CRUNCH_SRCDIR_wpa_supplicant= $(.CURDIR)/../../usr.sbin/wpa/wpa_supplicant #CRUNCH_SRCDIR_wpa_cli= $(.CURDIR)/../../usr.sbin/wpa/wpa_cli +.if ${MK_OFED} != "no" +# libpcap dependencies if OFED is enabled +CRUNCH_LIBS+= -lmlx5 -libverbs +.endif CRUNCH_LIBS+= -lpcap -- 2.45.0