app programming on freebsd amd64

Xin LI delphij at delphij.net
Thu Jul 31 19:42:55 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck Robey wrote:
| I admit it, I'm a hobbyist, so I don't really want to make use of
ports.  The
| fun's NOT in having everything handed to you, and the ports people try
hard as
| hell to prevent you from doing anything on your own.  My current
project deals
| with Xorg.  I recently finished getting Xorg and Xfree86 to build on
my x86 box,
| so I could compare the two.
|
| Right now, I want to build xorg on the amd64 platform.  It seems that
if I don't
| supply the correct flags (which I don't know about) then the amd64 gcc
gives me
| 64 bit apps & libraries.  What would the flags be, if I want to build
32 bit
| things, both libs and  apps?  I'll worry about handling any other
problems, I
| just want to know the way to coax gcc (and gnu-ld) to think purely 32 bit.
|
| Can you help me here?

'-m32'?

However to make this useful one has to hack the library scripts to make
all installation to ${PREFIX}/lib32 I think.  If you are trying to
cross-compile on amd64, one possible better solution would be to
populate a pure 32-bit world (i.e. ./install.sh the 'base' distribution
to a directory and chroot into it with a mounted /dev).

Cheers,
- --
Xin LI <delphij at delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkiSFbMACgkQi+vbBBjt66AhhACffWQKROL1J5w7PRn6veOpLOyj
QBkAoInYr5Lq6fNeX8maYek4/WPQYe/0
=5Fw5
-----END PGP SIGNATURE-----


More information about the freebsd-amd64 mailing list