immortalwrt/include
Kevin Darbyshire-Bryant 6b195e37e7
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-03 11:31:47 +08:00
..
site fix permisson 2019-08-16 15:09:42 +08:00
autotools.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
cmake.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
debug.mk Revert "files: sync from openwrt v19.07 (#2690)" 2020-02-03 12:33:25 +08:00
depends.mk fix permisson 2019-08-16 15:09:42 +08:00
device_table.txt fix permission 2019-09-30 13:52:50 +08:00
download.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
feeds.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
hardened-ld-pie.specs fix permission 2019-09-30 13:52:50 +08:00
hardening.mk Revert "files: sync from openwrt v19.07 (#2690)" 2020-02-03 12:33:25 +08:00
host-build.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
image-commands.mk adjust build script (#3235) 2020-02-21 11:55:07 +08:00
image-legacy.mk fix permisson 2019-08-16 15:09:42 +08:00
image.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
kernel-build.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
kernel-defaults.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
kernel-version.mk kernel: bump to 4.9.214, 4.14.171, 4.19.106 2020-02-29 01:23:18 +08:00
kernel.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
netfilter.mk kernel/iptables: add modules for qos-gargoyle 2020-02-25 23:03:16 +08:00
nls.mk fix permisson 2019-08-16 15:09:42 +08:00
package-bin.mk fix permisson 2019-08-16 15:09:42 +08:00
package-defaults.mk fix permisson 2019-08-16 15:09:42 +08:00
package-dumpinfo.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
package-ipkg.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
package-seccomp.mk fix permisson 2019-08-16 15:09:42 +08:00
package.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
prereq-build.mk build: simplify gnu-getopt search 2020-03-03 11:31:47 +08:00
prereq.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
quilt.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
rootfs.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
scan.awk fix permisson 2019-08-16 15:09:42 +08:00
scan.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
shell.sh add luci-app-haproxy & luci-app-udpspeederv2 2019-05-25 21:05:51 +08:00
subdir.mk fix permisson 2019-08-16 15:09:42 +08:00
target.mk Merge Lean's source 2020-02-27 17:39:13 +08:00
toolchain-build.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
toplevel.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
u-boot.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
uclibc++.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
unpack.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
verbose.mk fix permisson 2019-08-16 15:09:42 +08:00
version.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00