When using the Meson option "ibverbs_link=dlopen",
a glue library is built.

After the recent change requiring eal_export.h,
the build stopped because the internal EAL include directory
was unknown to this glue library:

        drivers/common/mlx5/linux/mlx5_glue.c:19:10: fatal error:
        eal_export.h: No such file or directory

Fixes: c7020bb20fc7 ("build: mark exported symbols")

Reported-by: Ali Alnubani <alia...@nvidia.com>
Signed-off-by: Thomas Monjalon <tho...@monjalon.net>
---
 drivers/common/mlx5/linux/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/common/mlx5/linux/meson.build 
b/drivers/common/mlx5/linux/meson.build
index 58d0328c6d..5548a56199 100644
--- a/drivers/common/mlx5/linux/meson.build
+++ b/drivers/common/mlx5/linux/meson.build
@@ -237,7 +237,7 @@ if dlopen_ibverbs
     dlopen_sources = files('mlx5_glue.c')
     dlopen_install_dir = [ eal_pmd_path + '-glue' ]
     dlopen_includes = [global_inc]
-    dlopen_includes += 
include_directories('../../../../lib/eal/include/generic')
+    dlopen_includes += include_directories('../../../../lib/eal/common')
     dlopen_includes += include_directories('..')
     shared_lib = shared_library(
             dlopen_lib_name,
-- 
2.47.1

Reply via email to