This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
configure gcc to build 32-bit binaries on x86_64
- From: natasha at fnal dot gov
- To: gcc-help at gcc dot gnu dot org
- Cc: Natalia Ratnikova <natasha at fnal dot gov>
- Date: Wed, 17 Jan 2007 17:00:20 -0600 (CST)
- Subject: configure gcc to build 32-bit binaries on x86_64
- Reply-to: Natalia Ratnikova <natasha at fnal dot gov>
We plan to use x86_64 linux machine to build binary code that can
eventually run on i386 machine. I know it's possible with -m32.
I wonder if there is an easy way to configure/build GCC so that it would
produce 32-bit binaries by default?
The reason I want this is because we build many products, and it may be
more difficult to implant -m32 option in every build system.
Thanks for any hints.