From 373c6114f53513e2484fafc072c8d126afdc50d6 Mon Sep 17 00:00:00 2001 From: Ali Alnubani Date: Tue, 26 Nov 2019 08:35:24 +0000 Subject: [PATCH] net/mlx5: fix build with dlopen linkage The header mlx5_glue.h includes rte_byteorder.h, which isn't pulled by global_inc. This patch adds the missing include directory and fixes the build error: In file included from drivers/net/mlx5/mlx5_glue.c:31: drivers/net/mlx5/mlx5_glue.h:12:10: fatal error: rte_byteorder.h: No such file or directory The build failure can be triggered with: meson -Dibverbs_link=dlopen build && ninja -C build Fixes: 400d985eb586 ("net/mlx5: add VLAN push/pop DR commands to glue") Signed-off-by: Ali Alnubani Acked-by: Thomas Monjalon --- drivers/net/mlx5/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/meson.build b/drivers/net/mlx5/meson.build index 05fadf608b..d6b32db794 100644 --- a/drivers/net/mlx5/meson.build +++ b/drivers/net/mlx5/meson.build @@ -206,10 +206,14 @@ if pmd_dlopen and build dlopen_so_version = LIB_GLUE_VERSION dlopen_sources = files('mlx5_glue.c') dlopen_install_dir = [ eal_pmd_path + '-glue' ] + dlopen_includes = [global_inc] + dlopen_includes += include_directories( + '../../../lib/librte_eal/common/include/generic', + ) shared_lib = shared_library( dlopen_lib_name, dlopen_sources, - include_directories: global_inc, + include_directories: dlopen_includes, c_args: cflags, dependencies: libs, link_args: [ -- 2.20.1