From: Dan Nicholson <address@hidden>
To: devendra ayalasomayajula <address@hidden>
Cc: Daniel Herring <address@hidden>; address@hidden
Sent: Tuesday, July 7, 2009 6:35:10 AM
Subject: Re: libtool picking up 64 bit libs when making a 32 bit build on 64 bit machine
On Mon, Jul 6, 2009 at 11:29 PM, devendra
ayalasomayajula<
address@hidden> wrote:
> Hi Daniel,
>
> I still get the same error
>
> 1) downloaded latest libtool and configured it as below
> ./configure --host=i386-unknown-linux-gnu
> --build=x86_64-unknown-linux-gnu
On redhat you have to do it a little different to match the way they
name the gcc programs. Using the above --host, configure will try to
find i386-unknown-linux-gnu-gcc. Instead, try
--host=i386-redhat-linux. Then you should see configure picking
i386-redhat-linux-gcc as the compiler, which will generate 32 bit
binaries.
Alternatively, you can just bodge in -m32 in the CFLAGS to force a 32
bit binary to be built regardless of which compiler it
picks.
--
Dan