lib/env_dpdk: remove duplicate entries from DPDK_LIB_LIST
Future patches will remove some of the more complex conditions between different configure flags. As a result duplicate entries might be present in DPDK_LIB_LIST. Just for tidiness of the DPDK linker args, the DPDK_LIB_LIST_SORTED is added. Using sort function removes duplicate entries in the list. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I318fd0cebbd30a80d281175b7d48bb3249abb841 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10537 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Dong Yi <dongx.yi@intel.com>
This commit is contained in:
parent
ca0e0603ea
commit
a9df4808d5
@ -122,8 +122,10 @@ DPDK_LIB_LIST += rte_rcu
|
||||
endif
|
||||
endif
|
||||
|
||||
DPDK_SHARED_LIB = $(DPDK_LIB_LIST:%=$(DPDK_LIB_DIR)/lib%.so)
|
||||
DPDK_STATIC_LIB = $(DPDK_LIB_LIST:%=$(DPDK_LIB_DIR)/lib%.a)
|
||||
DPDK_LIB_LIST_SORTED = $(sort $(DPDK_LIB_LIST))
|
||||
|
||||
DPDK_SHARED_LIB = $(DPDK_LIB_LIST_SORTED:%=$(DPDK_LIB_DIR)/lib%.so)
|
||||
DPDK_STATIC_LIB = $(DPDK_LIB_LIST_SORTED:%=$(DPDK_LIB_DIR)/lib%.a)
|
||||
DPDK_SHARED_LIB_LINKER_ARGS = $(call add_no_as_needed,$(DPDK_SHARED_LIB))
|
||||
DPDK_STATIC_LIB_LINKER_ARGS = $(call add_whole_archive,$(DPDK_STATIC_LIB))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user