On 5/28/19 7:24 AM, Christian Weisgerber wrote:
Brian Callahan:

lang/ponyc uses $(shell getconf LONG_BIT) in its Makefile to
determine whether or not we're on a 64-bit platform.
However, our getconf(1) doesn't support reporting LONG_BIT.
This diff enables it. GNU/FreeBSD/DragonFly/MacOS getconf reports
LONG_BIT, but NetBSD getconf does not.
It appears to be part of a larger extension that adds all numerical
limits from POSIX <limits.h>:

$ ssh freebsd-box
$ getconf LONG_MIN
-9223372036854775808
$ getconf LONG_MAX
9223372036854775807
$ getconf LONG_BIT
64

If we add any of this, shouldn't we add all of it?


Sure; I cherry picked what I needed since I wasn't sure if this was a direction we wanted to go in but I can make it more complete.

Or, if there's a better way to do what I need (get a GNU Makefile to figure out whether or not its on a 64-bit or 32-bit platform) then I'll just withdraw this diff in favor of amending the port.

~Brian

Reply via email to