[Stripped Cc: list] On Mon, Mar 01, 2010 at 08:53:14AM -0700, M. Warner Losh wrote: > In message: <20100301092144.gs2...@deviant.kiev.zoral.com.ua> > Kostik Belousov <kostik...@gmail.com> writes: > : -m32 is not a hack, it is a standard feature on Linux and Solaris, > : allowing to build both 32 and 64 bit binaries in the host environment, > : not going to cross-compilation or chroot. It is very much missing on > : the FreeBSD. > > Having thought about it, I can see how we can make it work, so I > withdraw my 'hack' statement. You're right. > > On Solaris and Linux, how well does autoconf cope with using CC="cc > -m32"? I've had issues with similar constructs on MIPS to select > diffrent word sizes or ABIs. On Solaris, -m32 is a default for the SunPRO compilers. Both -m32 and -m64 worked quite good for me. They are very careful to provide both 32 and 64 bit versions of all libraries with the system, and system includes a lot of things, like X/Gnome etc.
I never did used -m32 on Linux (knocking on the wood). > > : Merged x86 tree is ortoghonal to this feature. > > Yes, that's a much better way of saying what I was trying to say. > > Warner
pgpJW2g4lgFZG.pgp
Description: PGP signature