test: fix rpath for drivers with meson
authorTimothy Redaelli <tredaelli@redhat.com>
Wed, 1 Jul 2020 17:16:38 +0000 (19:16 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 7 Jul 2020 12:06:49 +0000 (14:06 +0200)
This commit fixes the setting of relative rpath on dpdk-test for
drivers ($libdir/dpdk/pmd-$abiver) to the correct absolute rpath
($prefix$libdir/dpdk/pmd-$abiver).

Fixes: b5dc795a8a55 ("test: build app with meson as dpdk-test")
Cc: stable@dpdk.org
Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
app/test/meson.build

index 56591db..39f295d 100644 (file)
@@ -425,7 +425,8 @@ dpdk_test = executable('dpdk-test',
        link_whole: link_libs,
        dependencies: test_dep_objs,
        c_args: cflags,
-       install_rpath: driver_install_path,
+       install_rpath: join_paths(get_option('prefix'),
+                        driver_install_path),
        install: true)
 
 has_hugepage = run_command('has-hugepage.sh').stdout().strip() != '0'