Skip to content

[fix] Fix rpath

Julia Sanchez requested to merge fix/FixRpath into master
  1. rpath could be wrongly set in case of locally installed dependencies with SLAM superbuild

-> Now, the rpath is completed to correctly link towards the good shared libs at runtime.

  1. On Ubuntu and recent Linux distrib, the linker sets the RUNPATH and not the RPATH as before. Those variables have 2 main differences :
  • rpath is checked before LD_LIBRARY_PATH and runpath is checked after LD_LIBRARY_PATH
  • rpath is transitive when runpath is not. When using the runpath, one might be sure all the dependencies have a correct rpath set. Note that ParaView relies on the rpath behavior for now.

The bug was discovered when LD_LIBRARY_PATH was set by ROS basic script, ROS libraries were preferred over the ones used during build process at runtime leading to some bugs ->Now, the rpath is preferred over the runpath using the flag disable-new-dtags to insure the use of the rpath set by the superbuild first

Edited by Julia Sanchez

Merge request reports

Loading