From: Conor Taylor <conor@taylor.sh> Date: Mon, 31 May 2021 18:45:38 +0000 (+0200) Subject: Fix macos build with versioned avr-gcc X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=9f1014a7ae80a0338d10a6152f2fee0e5a6e410d;p=sx%2Fsimavr.git Fix macos build with versioned avr-gcc --- diff --git a/Makefile.common b/Makefile.common index c7d4fc0..6823733 100644 --- a/Makefile.common +++ b/Makefile.common @@ -66,7 +66,7 @@ ifeq (${shell uname}, Darwin) # That's for Homebrew libelf and avr-gcc support HOMEBREW_PREFIX ?= /usr/local ifeq (${shell test -d $(HOMEBREW_PREFIX)/Cellar && echo Exists}, Exists) - ifneq (${shell test -d $(HOMEBREW_PREFIX)/Cellar/avr-gcc/ && echo Exists}, Exists) + ifneq (${shell test -d $(HOMEBREW_PREFIX)/Cellar/avr-gcc* && echo Exists}, Exists) $(error Please install avr-gcc: brew tap osx-cross/homebrew-avr ; brew install avr-libc) endif ifneq (${shell test -d $(HOMEBREW_PREFIX)/Cellar/libelf/ && echo Exists}, Exists)