summaryrefslogtreecommitdiffstats
path: root/vpp/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'vpp/Makefile.am')
-rw-r--r--vpp/Makefile.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/vpp/Makefile.am b/vpp/Makefile.am
index 640c844b..4c28fb79 100644
--- a/vpp/Makefile.am
+++ b/vpp/Makefile.am
@@ -71,11 +71,13 @@ vpp_LDADD += -lsvm -lsvmdb -lrt
vpp_LDADD += -lvnetplugin
if WITH_DPDK
+vpp_LDFLAGS = -Wl,--whole-archive
if ENABLE_DPDK_SHARED
-vpp_LDADD += -ldpdk
+vpp_LDFLAGS += -ldpdk
else
-vpp_LDADD += -l:libdpdk.a
+vpp_LDFLAGS += -l:libdpdk.a
endif
+vpp_LDFLAGS += -Wl,--no-whole-archive
endif
vpp_LDADD += -lvppinfra -lm -lpthread -ldl