summaryrefslogtreecommitdiffstats
path: root/build-data/packages/vlib.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build-data/packages/vlib.mk')
-rw-r--r--build-data/packages/vlib.mk13
1 files changed, 9 insertions, 4 deletions
diff --git a/build-data/packages/vlib.mk b/build-data/packages/vlib.mk
index 11bb1c7a508..8b72b602dfd 100644
--- a/build-data/packages/vlib.mk
+++ b/build-data/packages/vlib.mk
@@ -1,6 +1,11 @@
-vlib_configure_depend = vppinfra-install dpdk-install
+vlib_configure_depend = vppinfra-install
-vlib_configure_args += --with-dpdk
+vlib_CPPFLAGS = $(call installed_includes_fn, vppinfra)
+vlib_LDFLAGS = $(call installed_libs_fn, vppinfra)
-vlib_CPPFLAGS = $(call installed_includes_fn, vppinfra dpdk)
-vlib_LDFLAGS = $(call installed_libs_fn, vppinfra dpdk)
+ifeq ($($(PLATFORM)_uses_dpdk),yes)
+vlib_configure_depend += dpdk-install
+vlib_configure_args += --with-dpdk
+vlib_CPPFLAGS += $(call installed_includes_fn, dpdk)
+vlib_LDFLAGS += $(call installed_libs_fn, dpdk)
+endif