Quote:
Originally Posted by geekmaster
I loop mounted another 5.1.0 image somebody sent me, and it appears that this is a library loader script problem just like for libc.
Try replacing your tccmake script contents with this:
Code:
#!/bin/sh
[[ -f /usr/lib/libc.so ]]&& mount -o bind /mnt/us/tcc/tcc.libc.so /usr/lib/libc.so
[[ -f /usr/lib/libpthread.so ]]&& mount -o bind /mnt/us/tcc/tcc.libpthread.so /usr/lib/libpthread.so
tcc -I/mnt/us/tcc/include -o $1 $2 $3 $4 $5 $6 $7 $8 $9 $1.c
[[ -f /usr/lib/libc.so ]]&& umount /usr/lib/libc.so
[[ -f /usr/lib/libpthread.so ]]&& umount /usr/lib/libpthread.so
Does that work for you?
EDIT: Bind mounts like I show above are MUCH safer than making changes to root that could break an OTA update (possibly bricking the kindle).
|
Hmm the above method of completely replacing the libpthread.so file actually solved the problem
Thanks geekmaster ... Your method works without modifying the actual library files