Support for cc -m32
Peter Jeremy
peterjeremy at acm.org
Sat Jul 31 05:36:32 UTC 2010
On 2010-Jul-29 17:18:03 +0200, Tijl Coosemans <tijl at coosemans.org> wrote:
>I've put the initial version of some patches online to support cross
>compilation of 32 bit binaries on amd64. It's modelled after how NetBSD
>does this.
I presume you are aware of gnu/112215 (and maybe others).
>With these patches something like "cc -m32 -o test test.c -pthread -lm"
>generates a program that runs on FreeBSD/i386.
That's an improvement on my patches (in 112215) - they resulted in
the i386 binaries having references to /libexec/ld-elf32.so.1 and
/usr/lib32/*.so - so they would run in i386 compatibility mode on
amd64 but not on native i386.
>Feel free to test the patches and to comment on any part of them.
I hope to get some time to do this in a few days.
--
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20100731/c840fbfa/attachment.pgp
More information about the freebsd-arch
mailing list