summaryrefslogtreecommitdiffstats
path: root/build-data/packages/vnet.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build-data/packages/vnet.mk')
-rw-r--r--build-data/packages/vnet.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/build-data/packages/vnet.mk b/build-data/packages/vnet.mk
index 46d3c1d42dc..cafb93933bd 100644
--- a/build-data/packages/vnet.mk
+++ b/build-data/packages/vnet.mk
@@ -6,14 +6,12 @@ vnet_configure_depend = \
vnet_CPPFLAGS = $(call installed_includes_fn, \
vppinfra \
- openssl \
svm \
vlib \
vlib-api)
vnet_LDFLAGS = $(call installed_libs_fn, \
vppinfra \
- openssl \
svm \
vlib \
vlib-api)
@@ -25,6 +23,12 @@ endif
# Platform dependent configure flags
vnet_configure_args += $(vnet_configure_args_$(PLATFORM))
+# include & link with openssl only if needed
+ifneq ($($(PLATFORM)_uses_openssl),no)
+vnet_CPPFLAGS += $(call installed_includes_fn, openssl)
+vnet_LDFLAGS += $(call installed_libs_fn, openssl)
+endif
+
ifneq ($($(PLATFORM)_uses_dpdk),no)
ifeq ($($(PLATFORM)_uses_external_dpdk),yes)
vnet_CPPFLAGS += -I$($(PLATFORM)_dpdk_inc_dir)