aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile
index b8ccf56df10ea..675b7a44cae97 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -67,7 +67,7 @@ SUBDIR= ${SUBDIR_BOOTSTRAP} \
libopie \
libpam \
libpathconv \
- libpcap \
+ ${_libpcap} \
libpjdlog \
${_libproc} \
libprocstat \
@@ -184,6 +184,14 @@ SUBDIR.${MK_PMC}+= libipt
SUBDIR.${MK_BHYVE}+= libvmmapi
.endif
+.if ${MK_OFED} == "no"
+#
+# When OFED is enabled libpcap is built as part of
+# OFED due to library dependencies
+#
+_libpcap= libpcap
+.endif
+
.if ${MACHINE_CPUARCH} != "sparc64"
_libproc= libproc
_librtld_db= librtld_db