CrossCompilation64: Difference between revisions
From LLL
Jump to navigationJump to search
AlainKnaff (talk | contribs) (New page: To cross compile 32 bit binaries on a 64 bit machine, try this: gcc -m32 test.c) |
AlainKnaff (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
gcc -m32 test.c | gcc -m32 test.c | ||
To make a 32bit .deb on a 64 bit machine: | |||
CC="gcc -m32" dpkg-buildpackage -rfakeroot -ai386 |
Revision as of 09:58, 26 December 2007
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