Fix problem with DPDK vector PMDs not working in VPP
Linker was picking wrong, weakly linked function from dpdk drivers, so detection of vector mode was always failing. Change-Id: I11725c8ddbc4604dd04ecb89ebb7f02ee05e52c7 Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user