X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=drivers%2Fcommon%2Fmlx5%2Fmeson.build;h=206ef75ca29ec67eb08b9e3620c04a80e341f627;hp=c6d4154cd0c12f56db4ae7bd15e05c7879c8ff69;hb=6affeabaf3210f52a90dd1bb96741d23256a39c6;hpb=79ece3649ab30ab0addb70d3dffe448bb5adb20b diff --git a/drivers/common/mlx5/meson.build b/drivers/common/mlx5/meson.build index c6d4154cd0..206ef75ca2 100644 --- a/drivers/common/mlx5/meson.build +++ b/drivers/common/mlx5/meson.build @@ -7,6 +7,7 @@ if not is_linux subdir_done() endif +static_ibverbs = (get_option('ibverbs_link') == 'static') pmd_dlopen = (get_option('ibverbs_link') == 'dlopen') LIB_GLUE_BASE = 'librte_pmd_mlx5_glue.so' LIB_GLUE_VERSION = '20.02.0' @@ -22,8 +23,8 @@ endif libnames = [ 'mlx5', 'ibverbs' ] libs = [] foreach libname:libnames - lib = dependency('lib' + libname, required:false) - if not lib.found() + lib = dependency('lib' + libname, static:static_ibverbs, required:false) + if not lib.found() and not static_ibverbs lib = cc.find_library(libname, required:false) endif if lib.found()