Scratchbox2 uses a LD_PRELOAD library to create a transparent cross compiling environment. Scratchbox2 automatically maps file system accesses to crosscompiler, target libraries and headers using a flexible lua path mapping engine. Together with CPU transparency, provided by qemu or sbrsh, scratchbox2 enables fast crosscompiling without modifying build scripts. .