libtool
[Top][All Lists]
Advanced

[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: devendra ayalasomayajula
Subject: Re: libtool picking up 64 bit libs when making a 32 bit build on 64 bit machine
Date: Tue, 7 Jul 2009 08:11:28 -0700 (PDT)

Hi Dan,

configured libtool by setting host to i386-redhat-linux and I get the same error. Also i added -m32 to CFLAGS. still no luck.

sys_lib_search_path_spec is set to /usr/lib/gcc/x86_64-redhat-linux/3.4.6/ instead of  /usr/lib/gcc/x86_64-redhat-linux/3.4.6/32

thank you
dev


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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]