Fix macos build with versioned avr-gcc
authorConor Taylor <conor@taylor.sh>
Mon, 31 May 2021 18:45:38 +0000 (20:45 +0200)
committerConor Taylor <conor@taylor.sh>
Mon, 31 May 2021 18:45:38 +0000 (20:45 +0200)
Makefile.common

index c7d4fc0..6823733 100644 (file)
@@ -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)