[TriLUG] Cross compiling pain

Shane O'Donnell shaneo at nc.rr.com
Fri Mar 11 09:24:22 EST 2005


Have you messed with "-march" at all?

Also, you might try a "ld -V" to see what emulations are available to you,
then try "-m"-ing with one of them as appropriate...

Best of luck,

Shane O. 

-----Original Message-----
From: trilug-bounces at trilug.org [mailto:trilug-bounces at trilug.org] On Behalf
Of Brian Daniels
Sent: Thursday, March 10, 2005 11:33 PM
To: trilug
Subject: [TriLUG] Cross compiling pain

I've got an athlon64 box running FC3 that I'm trying to compile a i686 build
of 
a library on.  I've tried every option to ./configure that I can think of,
but 
still get an x86_64 library at the end of it.

My last attempt:

CFLAGS='-O2 -m32' ./configure --prefix=/usr/local/
--target=i686-pc-linux-gnu

this is accepted fine, but towards the end of the compile I start getting:

/usr/bin/ld: warning: i386 architecture of input file
`extensions/al_ext_mp3.o' 
is incompatible with i386:x86-64 output

I assume I need to pass some sort of option to the linker here?

Any suggestions appreciated.

Thanks,
Brian

-- 
Question with boldness even the existence of a god;
because if there be one he must approve of the
homage of reason more than that of blindfolded fear.

--Thomas Jefferson, Aug. 10, 1787


Brian Daniels                  bitmage at bellsouth.net
      http://www.eviloverlord.net

-- 
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc




More information about the TriLUG mailing list