Mark Mentovai f614332197 include/prereq-build.mk: macOS cross build improvements
This updates prereq-build.mk to find a suitable realpath utility, and
adds another place to look for a suitable getopt utility.

realpath has been used most notably by scripts/ipkg-build since
commit bb95be9265a9 ("scripts,ipkg-build: use realpath for pkg_dir")
and there are assorted other uses of it during a build.
It is ordinarily provided by GNU coreutils. This adds a SetupHostCommand
to locate it either under its own name or under grealpath, the name that
it will be available as under MacPorts or Homebrew, which use
--program-prefix=g.

Similarly, update the SetupHostCommand for getopt to be able to locate a
util-linux getopt at the default path used by MacPorts, in the same
fashion that
commit cc16f5d73e77 ("build: try to find getopt in macOS homebrew's standard location")'
did for Homebrew. As there is no standard alternative --program-prefix
for util-linux utilities in the way that GNU packages often use a "g"
prefix, this path-based approach is required in case a non-util-linux
getopt (such as one provided by an OS) shadows the util-linux getopt
in the PATH.

Signed-off-by: Mark Mentovai <mark@moxienet.com>
2022-06-24 17:07:56 +02:00
..
2022-03-28 00:15:52 +01:00
2022-01-17 09:14:26 +01:00
2022-01-17 09:14:26 +01:00
2021-02-05 14:54:47 +01:00
2021-05-13 15:13:15 +02:00
2021-02-05 14:54:47 +01:00
2022-06-06 19:20:02 +02:00
2022-06-06 19:20:28 +02:00
2022-05-18 13:32:06 +03:00
2022-06-21 16:41:17 +01:00
2022-04-09 15:56:04 +02:00
2022-06-19 12:31:02 +02:00
2021-11-20 21:08:25 +01:00
2022-01-17 09:14:26 +01:00
2021-10-24 18:20:50 +02:00
2021-02-28 00:09:09 +00:00
2021-02-05 14:54:47 +01:00