aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>2017-03-07 14:39:29 +0000
committerDamjan Marion <dmarion.lists@gmail.com>2017-03-22 10:47:22 +0000
commitfa80f2e421e7e85f429437aad2da9971a2a60a24 (patch)
tree9d5d89f9cbf98a5f8755edb031825a697a90c215 /src
parent7312cc7785a9d1198519e1091a645fecc019a6b8 (diff)
dpdk: fix plugin linking with sw crypto libraries
Change-Id: I3e3bf786ab3c7672ff2cc7acd221421072e3ac8b Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/dpdk.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/dpdk.am b/src/plugins/dpdk.am
index 01383de60ae..b857429d73c 100644
--- a/src/plugins/dpdk.am
+++ b/src/plugins/dpdk.am
@@ -14,7 +14,12 @@
vppapitestplugins_LTLIBRARIES += dpdk_test_plugin.la
vppplugins_LTLIBRARIES += dpdk_plugin.la
-dpdk_plugin_la_LDFLAGS = $(AM_LDFLAGS) -Wl,--whole-archive,-l:libdpdk.a,--no-whole-archive,-lm,-ldl
+dpdk_plugin_la_LDFLAGS = $(AM_LDFLAGS) -Wl,--whole-archive,-l:libdpdk.a,--no-whole-archive
+if WITH_DPDK_CRYPTO_SW
+dpdk_plugin_la_LDFLAGS += -Wl,--exclude-libs,libIPSec_MB.a,-l:libIPSec_MB.a
+dpdk_plugin_la_LDFLAGS += -Wl,--exclude-libs,libisal_crypto.a,-l:libisal_crypto.a
+endif
+dpdk_plugin_la_LDFLAGS += -Wl,-lm,-ldl
dpdk_plugin_la_SOURCES = \
dpdk/main.c \