My advice on the whole idea of compiling gnuboy for a touch:
install a cross compiler on linux - search on here for instructions.
try to compile something - search on here for instructions.
ask for help if you run into problems (exact steps).
I thought hacking was just 'trying it until it works' or 'help I'm going to throw this stupid thing out the window'
try it first, then ask for help.