Buildroot has a tendency to embed unwanted rpaths.
so to fix this for now I have compiled this kindle tool.
Just dump the
rpath somewhere on FAT to run it.
Code here:
http://gcc.gnu.org/ml/gcc/1999-04n/msg01105.html
root@kindle:root>
rpath
Usage: rpath objectfile [newrpath]
Example of unwanted info:
Quote:
root@kindle:root> readelf -d /mnt/us/usr/bin/glib-compile-schemas
Dynamic section at offset 0x72b4 contains 28 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libglib-2.0.so.0]
0x00000001 (NEEDED) Shared library: [librt.so.1]
0x00000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x00000001 (NEEDED) Shared library: [libc.so.6]
0x0000000f (RPATH) Library rpath: [/home/you/GIT/buildroot/output/build/libglib2-2.30.2/glib/.libs]
|
root@kindle:root>
rpath /mnt/us/usr/bin/glib-compile-schemas /mnt/us/usr/lib
Quote:
/mnt/us/usr/bin/glib-compile-schemas:existing RPATH: /home/you/GIT/buildroot/output/build/libglib2-2.30.2/glib/.libs
/mnt/us/usr/bin/glib-compile-schemas:new RPATH: /mnt/us/usr/lib
|
now it's fixed. Simples. : )
root@kindle:root>
readelf -d /mnt/us/usr/bin/glib-compile-schemas
Quote:
Dynamic section at offset 0x72b4 contains 28 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libglib-2.0.so.0]
0x00000001 (NEEDED) Shared library: [librt.so.1]
0x00000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x00000001 (NEEDED) Shared library: [libc.so.6]
0x0000000f (RPATH) Library rpath: [/mnt/us/usr/lib]
|
Enjoy.