This patch detect if 64 bits is supported and build erlang accordingly.
make sure we build a 64bits enabled erlang on 64 bits platforms
@thomasc, what do you think? Shouldn't we allow building 32-bit VM as well (for example, for those who need to use wx)?
An option is probably better. I can add an an only_32bits option if you want.
This is configurable through KERL_CONFIGURE_OPTIONS even right now. However, it is not cross-platform. How about introducing a KERL_64BIT=y|n OS env var that will modify KERL_CONFIGURE_OPTIONS to either enable or disable 64 bits in a cross-platform fashion?
The problem I see here is that the otp_build script itself is not designed in a cross-platform fashion, and not particularly consistent.
For the time being it's always possible to define host specific flags in the .kerlrc file.
@thomasc, what do you think about KERL_64BIT kerl flag that makes 64/32 compilation cross-platform?
Ok, so the problem is that, for example, on Linux, this setting won't make a lot of sense on non-x86 configurations.
Indeed, we can't really cover all possible os/archs or we'll end up duplicating a lot of otp_build's logic.
That's why I think it's better to handle the case through the KERL_CONFIGURE_OPTIONS var, specially setting it once for all in the .kerlrc file for a given host.
This PR has been open for >4 years. I'm going to close it - if it's still a problem, please open a new issue.