make: simplify rdma dependency linking
Instead of adding the linker flags just before application compilation on linux, move that linking to earlier in the process. This will also be useful for the shared library build. This series is aimed at fixing github issue 434 Change-Id: I84bcc6bd922ddb6e48adb2dfe0b154700773cf27 Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/425435 Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Lance Hartmann <lance.hartmann@oracle.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
c58d3c445b
commit
6c4f29bb01
@ -125,17 +125,13 @@ LIBS += -L$(CONFIG_VPP_DIR)/lib64
|
||||
COMMON_CFLAGS += -I$(CONFIG_VPP_DIR)/include
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_RDMA),y)
|
||||
SYS_LIBS += -libverbs -lrdmacm
|
||||
endif
|
||||
|
||||
#Attach only if FreeBSD and RDMA is specified with configure
|
||||
ifeq ($(OS),FreeBSD)
|
||||
ifeq ($(CONFIG_RDMA),y)
|
||||
# RDMA Userspace Verbs Library
|
||||
ifneq ("$(wildcard /usr/lib/libibverbs.*)","")
|
||||
SYS_LIBS += -libverbs
|
||||
endif
|
||||
# RDMA Connection Manager Library
|
||||
ifneq ("$(wildcard /usr/lib/librdmacm.*)","")
|
||||
SYS_LIBS += -lrdmacm
|
||||
endif
|
||||
# Mellanox - MLX4 HBA Userspace Library
|
||||
ifneq ("$(wildcard /usr/lib/libmlx4.*)","")
|
||||
SYS_LIBS += -lmlx4
|
||||
|
@ -46,10 +46,6 @@ LIBS += $(SOCK_MODULES_LINKER_ARGS)
|
||||
LIBS += $(SPDK_LIB_LINKER_ARGS)
|
||||
LIBS += $(ENV_LINKER_ARGS)
|
||||
|
||||
ifeq ($(CONFIG_RDMA),y)
|
||||
SYS_LIBS += -libverbs -lrdmacm
|
||||
endif
|
||||
|
||||
all : $(APP)
|
||||
@:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user