support/scripts: add fix-rpath script to sanitize the rpath
authorSamuel Martin <s.martin49@gmail.com>
Thu, 20 Jul 2017 14:35:14 +0000 (16:35 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 20 Jul 2017 20:47:04 +0000 (22:47 +0200)
commit022b8adbd68c7d2aee3d1ea15e2e7dd13d7677b3
tree3c149087be7a17f6c96d96d788258d4229b45f63
parent07b05f439a145edc061c8a2460f849de069c32cb
support/scripts: add fix-rpath script to sanitize the rpath

This commit introduces the script "fix-rpath" able to scan a tree,
detect ELF files, check their RPATH and fix it in a proper way.
The RPATH fixup is done by the patchelf utility using the option
"--make-rpath-relative <root-directory>".

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/fix-rpath [new file with mode: 0755]