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-27 12:03:18 +0000 |
commit | feea54df6768036649ca6c57524e2a1f480ad249 (patch) | |
tree | 4eb8a88090375f72489871b74a6d02cc26e47723 /meta/recipes-extended/quota | |
parent | a956f9d91c8128e43b55c6bc01337472e47fe43a (diff) | |
download | openembedded-core-feea54df6768036649ca6c57524e2a1f480ad249.tar.gz openembedded-core-feea54df6768036649ca6c57524e2a1f480ad249.tar.bz2 openembedded-core-feea54df6768036649ca6c57524e2a1f480ad249.zip |
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]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/quota')
0 files changed, 0 insertions, 0 deletions