https://www.j1nx.nl/diy/crosscompiling-software-for-raspbian-in-a-chroot-environment/
(Cross)Compiling software for Raspbian in a chroot environment.