Compiling C/C++ Programs For Embedded Linux -- autoconf Many open source projects use configure scripts. Some need overrides when cross-compiling, e.g. $ export ac_cv_func_setpgrp_void=yes $ ./configure --target=ppc-405-linux-gnu --build=i686-linux This generates a Makefile with CC=ppc-405-linux-gnu-gcc Autoconf is complex; read its tutorials and macro library!