]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
binutils: fix symlinks
authorAchille Fouilleul <achille.fouilleul@gadz.org>
Fri, 5 Oct 2018 14:38:08 +0000 (16:38 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 9 Oct 2018 18:04:02 +0000 (19:04 +0100)
commit8b6109901aaa2b36541ca12c605febcd0d0e25dd
tree38324ba932f562918da18588813db04aeccfe8fa
parent74ea4f280c19bc7901e2d13960ad81165dedd01d
binutils: fix symlinks

For nativesdk, symlinks created by do_install contain ${SDKPATHNATIVE}.

This is a problem with SDKs that include nativesdk-binutils and nativesdk-gcc.
When extracting such an SDK dangling symlinks are created, because
relocate_sdk.py does not adjust symlinks. As a result gcc ends up calling the
host binutils.

Use the os.path.relpath function to obtain shorter relative paths, which do not
contain ${SDKPATHNATIVE}.

(From OE-Core rev: 3d6372aa2d9f752eac0e4943d1bde04f0f1924a0)

Signed-off-by: Achille Fouilleul <achille.fouilleul@gadz.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/binutils/binutils.inc