View Single Post
Old 05-23-2012, 06:24 PM   #125
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
Just try rebuilding it for installation on the Kindle.
./configure --prefix=/mnt/us/tcc --sysroot=/mnt/us
should do the trick.

Then, in /mnt/us/tcc/{include,lib} just symlink to wherever lab126 put the files.

That __should__ (according to the tcc docs) fix both the library and the include search paths.

@lab126: My apologies, the use of loader scripts for *.so files was a brain fart of the gnu/gcc project. We will have to let you slide on that one.
I did that for SDL, so that programs I compile automatically look for the SDL libraries in /mnt/us/SDL instead of on the root partition. That way you do not need to change LD_LIBRARY_PATH before running an SDL-dependent program.

I tried building the new tinycc sources from the git repository, but I had some technical difficulties with that so I built my tcc package with lrizzo's tcc build instead, along with header files from multiple sources, and extra scripts, to make it easy to install and use. No matter how you build it, there will be complications caused by broken symlnks and such in various kindle firmware versions, which I have been "fixing" in the install and tccmake scripts.

EDIT: Symlinks take very little space and only two known symlinks are missing from /usr/lib in firmware version 3.3, which is why I RESTORE symlinks in /usr/lib only if they are missing. Moving symlinks elsewhere would create inconsistencies with other firmware versions. Regarding your suggestion to create symlinks in the /mnt/us/tcc folder -- on vfat? I am also curious why the "-run" parameter does not work in lrizzo's build of tcc.

Last edited by geekmaster; 05-23-2012 at 06:55 PM.
geekmaster is offline   Reply With Quote