You can also use my tutorial to set up a virtual machine running the kindle processor. You can compile as normal and if any library files are missing you can copy them to the kindle.
Also, you can use the debian on kindle to compile things.
https://www.mobileread.com/forums/sh...d.php?t=286561