git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
config: add static linkage of mlx dependency
[dpdk.git]
/
drivers
/
net
/
mlx5
/
Makefile
diff --git
a/drivers/net/mlx5/Makefile
b/drivers/net/mlx5/Makefile
index
0938303
..
992769d
100644
(file)
--- a/
drivers/net/mlx5/Makefile
+++ b/
drivers/net/mlx5/Makefile
@@
-58,6
+58,8
@@
CFLAGS += -DMLX5_GLUE='"$(LIB_GLUE)"'
CFLAGS += -DMLX5_GLUE_VERSION='"$(LIB_GLUE_VERSION)"'
CFLAGS_mlx5_glue.o += -fPIC
LDLIBS += -ldl
CFLAGS += -DMLX5_GLUE_VERSION='"$(LIB_GLUE_VERSION)"'
CFLAGS_mlx5_glue.o += -fPIC
LDLIBS += -ldl
+else ifeq ($(CONFIG_RTE_IBVERBS_LINK_STATIC),y)
+LDLIBS += $(shell $(RTE_SDK)/buildtools/options-ibverbs-static.sh)
else
LDLIBS += -libverbs -lmlx5
endif
else
LDLIBS += -libverbs -lmlx5
endif