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 <dbn.li...@gmail.com>
To: devendra ayalasomayajula <devendra_ayalasomayaj...@yahoo.com>
Cc: Daniel Herring <dherr...@tentpost.com>; libtool@gnu.org
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<devendra_ayalasomayaj...@yahoo.com> 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



      
_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to