Compile 32bit on 64bit host
From Attie's Wiki
(Difference between revisions)
m |
m |
||
Line 9: | Line 9: | ||
</pre> | </pre> | ||
− | {{note|While sorting this problem I found a new friend: <code>yum | + | {{note|While sorting this problem I found a new friend: <code>yum provides <filename></code>}} |
Latest revision as of 20:27, 20 December 2010
While setting up distcc, I ran into a problem. The server is running Fedora 12 64-bit, while the client is running Fedora 12 32-bit.
To make 32-bit binaries you need to add -m32
to the compile line, and install a couple of things on the server:
$ yum install glibc-devel.i686 $ yum install libgcc.i686 ... $ gcc test.c -o test -m32
Note: While sorting this problem I found a new friend:
yum provides <filename>