CrossCompilation64

From LLL
Revision as of 10:01, 26 December 2007 by AlainKnaff (talk | contribs)
Jump to navigationJump to search

Preparation (on Kubuntu):

apt-get install libc6-i386
apt-get install libc6-dev-i386

To cross compile 32 bit binaries on a 64 bit machine, try this:

gcc -m32 test.c


To make a 32bit .deb on a 64 bit machine:

CC="gcc -m32" dpkg-buildpackage -rfakeroot -ai386