[dpdk-dev] app/testpmd: Fix relative rpath for drivers

Message ID e2ed2da4c57b2f26a5d8a62871dbc9ac978f4649.1505924491.git.tredaelli@redhat.com (mailing list archive)
State Accepted, archived
Delegated to: Bruce Richardson
Headers

Checks

Context Check Description
ci/checkpatch warning coding style issues
ci/Intel-compilation success Compilation OK

Commit Message

Timothy Redaelli Sept. 20, 2017, 4:41 p.m. UTC
  This commit fixes the setting of relative rpath on dpdk-testpmd for drivers
($libdir/dpdk/drivers) to the correct absolute rpath ($prefix$libdir/dpdk/drivers)

Fixes: d123bba2dfbe ("build: add initial infrastructure for meson & ninja builds")

Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
---

This commit is for dpdk-next-build.

 app/test-pmd/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Bruce Richardson Sept. 21, 2017, 10:50 a.m. UTC | #1
On Wed, Sep 20, 2017 at 06:41:28PM +0200, Timothy Redaelli wrote:
> This commit fixes the setting of relative rpath on dpdk-testpmd for drivers
> ($libdir/dpdk/drivers) to the correct absolute rpath ($prefix$libdir/dpdk/drivers)
> 
> Fixes: d123bba2dfbe ("build: add initial infrastructure for meson & ninja builds")
> 
> Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
> ---
Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied to dpdk-next-build
  

Patch

diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build
index a374771bf..202adf2b2 100644
--- a/app/test-pmd/meson.build
+++ b/app/test-pmd/meson.build
@@ -70,5 +70,5 @@  executable('dpdk-testpmd',
 	link_whole: link_libs,
 	dependencies: dep_objs,
 	link_args: eal_extra_link_arg, # add -ldl for linux, -lexecinfo for BSD
-	install_rpath: driver_install_path,
+	install_rpath: join_paths(get_option('prefix'), driver_install_path),
 	install: true)