[TriLUG] Cross compiling pain
bitmage at bellsouth.net
Fri Mar 11 11:58:40 EST 2005
On Fri, Mar 11, 2005 at 09:24:22AM -0500, Shane O'Donnell wrote:
> Have you messed with "-march" at all?
I've tried -march=i386. Compiles, but still generates the ld errors.
> 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...
GNU ld version 126.96.36.199.2 20040927
I tried passing this to the linker with:
CFLAGS='-O2 -m32 -Xlinker -melf_i386' ./configure --prefix=/usr/local/
which is accepted, but I still get the ld errors as before. If I set it to
i386linux, configure fails:
configure:1985: checking for C compiler default output file name
configure:1988: gcc -O2 -m32 -Xlinker -mi386linux conftest.c >&5
/usr/bin/ld: unrecognized option '--eh-frame-hdr'
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
More information about the TriLUG