diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-26 22:14:47 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-29 09:52:57 +0000 |
| commit | 6fcb96076ca60ef30062fda0ff8308cc840ab07d (patch) | |
| tree | 4848a18b376e0d066196ad4cb1486ccc30f31a89 /documentation/kernel-dev/kernel-dev-customization.xsl | |
| parent | 572a8eb87489d549fff33d85a3760949730978eb (diff) | |
| download | poky-6fcb96076ca60ef30062fda0ff8308cc840ab07d.tar.gz | |
chrpath: Improve crazy code
The current code is a little bit overcomplicated, deficient and also
possibly broken.
Issues include:
a) Not maximally optisming rpaths (e.g. a lib in usr/lib might get an
rpath of $ORIGIN/../../usr/lib)
b) The return in the middle of the for loop look suspiciously like
it might break on some binaries
c) The depth function, loops of "../" prepending and so on can
be replaced with a call to os.path.relpath
This patch cleans up the above issues.
Running binaries should result in less "../" resolutions which can't
hurt performance either.
[YOCTO #3989]
(From OE-Core rev: feea54df6768036649ca6c57524e2a1f480ad249)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/kernel-dev/kernel-dev-customization.xsl')
0 files changed, 0 insertions, 0 deletions
