diff options
-rw-r--r-- | src/plugins/dpdk.am | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/dpdk.am b/src/plugins/dpdk.am index 0b242502..75bfb967 100644 --- a/src/plugins/dpdk.am +++ b/src/plugins/dpdk.am @@ -14,7 +14,11 @@ vppapitestplugins_LTLIBRARIES += dpdk_test_plugin.la vppplugins_LTLIBRARIES += dpdk_plugin.la +if ENABLE_DPDK_SHARED +dpdk_plugin_la_LDFLAGS = $(AM_LDFLAGS) -ldpdk +else dpdk_plugin_la_LDFLAGS = $(AM_LDFLAGS) -Wl,--whole-archive,-l:libdpdk.a,--no-whole-archive +endif 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 |