[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libtool picking up 64 bit libs when making a 32 bit build on 64 bit
From: |
Dan Nicholson |
Subject: |
Re: libtool picking up 64 bit libs when making a 32 bit build on 64 bit machine |
Date: |
Tue, 7 Jul 2009 06:35:10 -0700 |
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