]> code.ossystems Code Review - openembedded-core.git/commit
linuxloader/image-prelink/image-mklibs: Fix non-standard path prelinking
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 4 Mar 2016 16:28:40 +0000 (16:28 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Mar 2016 00:10:24 +0000 (00:10 +0000)
commit7c3f2f61536cc8e0322087558cdcfe29ee2fac6d
treef0c0ca9bfcd00a147f6efe9078b7a1c70a35e240
parent7fd1d7e639c2ed7e0699937a5cb245c187b7c811
linuxloader/image-prelink/image-mklibs: Fix non-standard path prelinking

Prelinking on x86-64 wasn't working out the box as it uses /lib and
not /lib64 for libs. Prelink was refusing to link as the dynamic loader
didn't match its idea of the right path. Passing in the --dyanmic-linker
option avoids this.

We can share code from image-mklibs so abstract that into a new class,
linuxloader.bbclass.

This does break prelinking of multilib images, I've opened a bug so we
can loop back and fix that problem, the code would need to iterate the
dynamic loaders (and setup ld.so.conf files for it).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image-mklibs.bbclass
meta/classes/image-prelink.bbclass
meta/classes/linuxloader.bbclass [new file with mode: 0644]