X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fmlx4%2Fmeson.build;h=4040065150f68212937649542fede193c156537e;hb=0f20acbf5edaeab8e4c9d400e443679d48008569;hp=f66e70f4d1719cc15893425b5a225f7b0af5898c;hpb=76c72a34bb0aa174fea2fa4978550603e154357f;p=dpdk.git diff --git a/drivers/net/mlx4/meson.build b/drivers/net/mlx4/meson.build index f66e70f4d1..4040065150 100644 --- a/drivers/net/mlx4/meson.build +++ b/drivers/net/mlx4/meson.build @@ -30,7 +30,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 @@ -39,16 +39,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 sources = files( 'mlx4.c', 'mlx4_ethdev.c', @@ -115,7 +116,7 @@ configure_file(output : 'mlx4_autoconf.h', configuration : config) # Build Glue Library if dlopen_ibverbs dlopen_name = 'mlx4_glue' - dlopen_lib_name = driver_name_fmt.format(dlopen_name) + dlopen_lib_name = 'rte_net_' + dlopen_name dlopen_so_version = LIB_GLUE_VERSION dlopen_sources = files('mlx4_glue.c') dlopen_install_dir = [ eal_pmd_path + '-glue' ]