wiki:Linux/Ubuntu/CrossCompile

Cross Compile Architectures

Basic process when not using debian build scripts:

$ apt-get install ia32-libs lib32gcc1 lib32stdc++6 libc6-dev-i386 gcc-multilib

$ gcc -m32 ...