X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcommon%2Fmlx5%2Fmeson.build;h=ac2cfa6236f6f51a7148b8811fe8790f41fb2139;hb=40b9e7f65fe1ef9f65f80c59e11b0af3d362a80d;hp=ea98e61fcdeacd9adcf8fd26acdf8bed3514a393;hpb=76c72a34bb0aa174fea2fa4978550603e154357f;p=dpdk.git diff --git a/drivers/common/mlx5/meson.build b/drivers/common/mlx5/meson.build index ea98e61fcd..ac2cfa6236 100644 --- a/drivers/common/mlx5/meson.build +++ b/drivers/common/mlx5/meson.build @@ -29,7 +29,7 @@ foreach libname:libnames endif if lib.found() libs += lib - if not static_ibverbs + if not static_ibverbs and not dlopen_ibverbs ext_deps += lib endif else @@ -38,16 +38,17 @@ foreach libname:libnames subdir_done() endif endforeach -if static_ibverbs +if static_ibverbs or dlopen_ibverbs # Build without adding shared libs to Requires.private ibv_cflags = run_command(pkgconf, '--cflags', 'libibverbs').stdout() ext_deps += declare_dependency(compile_args: ibv_cflags.split()) +endif +if static_ibverbs # Add static deps ldflags to internal apps and Libs.private ibv_ldflags = run_command(ldflags_ibverbs_static, check:true).stdout() ext_deps += declare_dependency(link_args:ibv_ldflags.split()) endif -allow_experimental_apis = true deps += ['hash', 'pci', 'net', 'eal', 'kvargs'] sources = files( 'mlx5_devx_cmds.c', @@ -201,7 +202,7 @@ if dlopen_ibverbs dlopen_install_dir = [ eal_pmd_path + '-glue' ] dlopen_includes = [global_inc] dlopen_includes += include_directories( - '../../../lib/librte_eal/common/include/generic', + '../../../lib/librte_eal/include/generic', ) shared_lib = shared_library( dlopen_lib_name,