On Tue, Mar 07, 2006 at 08:59:36AM +0100, Dittmann, Werner wrote:
Just an idea: put a linux32 in front of the configure call. linux32 switches the system identify to a 32-bit 686 system for the commands.
linux32 ./configure
This in addition to set the CFLAGS and LDFLAGS to the -m32 architecture.
I found sometimes that it was just easier to set CC to 'gcc -m32' as there were sometimes calls to CC without the flags. And if there are any direct calls to ld, either add a -32 flag, or replace the ld calls with 'gcc -m32' and it'll call ld with the right flags. My steps to building 32bit package are usually: linux32 /bin/bash # Easier to just use a shell vim <spec> # Add 32bit to pkg name so you get a <pkg>-32bit-<ver> rpm CC='gcc -m32' rpmbuild -bb <spec> -- Mike Marion-Unix SysAdmin/Staff Engineer-http://www.qualcomm.com My BBS is baroque now. Please call Bach later with your Handel.