Openwrt/include
Kevin Darbyshire-Bryant a5100a0bd1 build: simplify gnu-getopt search
getopt is the only command where /usr/local/bin is specified explicitly.
All other commands are assumed to exist in the PATH in one form or
another.  Remove this exception and require gnugetopt/getopt to be in
the user's PATH.

In the case of macos Homebrew, getopt is 'keg only' hence not linked
into /usr/local/bin whilst other commands are linked and likely found by
virtue of /usr/local/bin being in PATH.

Since 2019 Homebrew is very reluctant to install links that have
potential to override default OS behaviour, eg: following instructions
on our current 'how to build on macos' wiki page:

$ brew ln gnu-getopt --force
Warning: Refusing to link macOS-provided software: gnu-getopt
If you need to have gnu-getopt first in your PATH run:
  echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.zshrc

A better option for macos is to link getopt as 'gnugetopt' in
/usr/local/bin, thus the build system will find 'gnugetopt' but other
applications looking for just 'getopt' will find the original macos
binary.

Ultimately it makes sense that 'GNU' dependencies are placed in
/usr/local/bin and /usr/local/bin is included in the user's PATH.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2020-03-02 11:42:31 +00:00
..
site
autotools.mk
cmake.mk
debug.mk
depends.mk
device_table.txt
download.mk
feeds.mk
hardened-ld-pie.specs
hardening.mk
host-build.mk
image-commands.mk build: define check-kernel-size to remove unflashable images 2020-01-15 20:05:48 +01:00
image-legacy.mk
image.mk build: fix empty SUBTARGET in json files 2020-02-13 17:45:46 +01:00
kernel-build.mk
kernel-defaults.mk
kernel-version.mk kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
kernel.mk build: Add KBUILD_HOSTLDLIBS 2020-01-26 19:20:08 +01:00
netfilter.mk kernel: Include xt_MASQUERADE for kernel 5.2 and later 2020-02-28 17:50:46 +01:00
nls.mk
package-bin.mk
package-defaults.mk
package-dumpinfo.mk
package-ipkg.mk base-files: fix build for /sbin/pkg_check 2020-01-14 17:52:34 +01:00
package-seccomp.mk
package.mk build: Remove STAGING_DIR_HOST references for InstallDev/UninstallDev 2020-03-01 21:35:59 +01:00
prereq-build.mk build: simplify gnu-getopt search 2020-03-02 11:42:31 +00:00
prereq.mk
quilt.mk
rootfs.mk
scan.awk
scan.mk
shell.sh
subdir.mk
target.mk kernel: remove further obsolete kernel version switches 2020-01-18 19:39:05 +01:00
toolchain-build.mk
toplevel.mk
u-boot.mk
uclibc++.mk
unpack.mk
verbose.mk
version.mk