mlx4: fix shared library dependency
[dpdk.git] / drivers / net / mlx4 / Makefile
index 14cb53f..23b766d 100644 (file)
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
+ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS)$(CONFIG_RTE_BUILD_SHARED_LIB),yy)
+all:
+       @echo 'MLX4: Not supported in a combined shared library'
+       @false
+endif
+
 # Library name.
 LIB = librte_pmd_mlx4.a
 
@@ -50,6 +56,7 @@ CFLAGS += -g
 CFLAGS += -I.
 CFLAGS += -D_XOPEN_SOURCE=600
 CFLAGS += $(WERROR_FLAGS)
+LDLIBS += -libverbs
 
 # A few warnings cannot be avoided in external headers.
 CFLAGS += -Wno-error=cast-qual