[openwrt/openwrt] build: try to find getopt in macOS homebrew's standard location

LEDE Commits lede-commits at lists.infradead.org
Sat Nov 14 09:22:16 EST 2020


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/cc16f5d73e770136eb0f3cf92ed518292d626bac

commit cc16f5d73e770136eb0f3cf92ed518292d626bac
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sat Nov 14 07:35:11 2020 +0100

    build: try to find getopt in macOS homebrew's standard location
    
    It is not symlinked to /usr/local/bin by default
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 include/prereq-build.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/prereq-build.mk b/include/prereq-build.mk
index f67a01299e..8181812599 100644
--- a/include/prereq-build.mk
+++ b/include/prereq-build.mk
@@ -125,7 +125,8 @@ $(eval $(call SetupHostCommand,egrep,Please install GNU 'grep', \
 $(eval $(call SetupHostCommand,getopt, \
 	Please install an extended getopt version that supports --long, \
 	gnugetopt -o t --long test -- --test | grep '^ *--test *--', \
-	getopt -o t --long test -- --test | grep '^ *--test *--'))
+	getopt -o t --long test -- --test | grep '^ *--test *--', \
+	/usr/local/opt/gnu-getopt/bin/getopt -o t --long test -- --test | grep '^ *--test *--'))
 
 $(eval $(call SetupHostCommand,stat,Cannot find a file stat utility, \
 	gnustat -c%s $(TOPDIR)/Makefile, \



More information about the lede-commits mailing list