From 652b6a7e9b5eb788f5ace8d2827f278a94f4b1b8 Mon Sep 17 00:00:00 2001 From: Christian Vogelgsang Date: Sat, 27 Nov 2021 13:42:59 +0100 Subject: [PATCH] autodetect install location of homebrew --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b33d423..627265b 100644 --- a/Makefile +++ b/Makefile @@ -433,7 +433,10 @@ CONFIG_GCC = --prefix=$(PREFIX) --target=m68k-amigaos --enable-languages=c,c++,o # OSX : libs added by the command brew install gmp mpfr libmpc ifeq (Darwin, $(findstring Darwin, $(UNAME_S))) - CONFIG_GCC += --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib --with-mpfr-include=/usr/local/include --with-mpfr-lib=/usr/local/lib --with-mpfr-include=/usr/local/include --with-mpfr-lib=/usr/local/lib + BREW_PREFIX := $$(brew --prefix) + CONFIG_GCC += --with-gmp=$(BREW_PREFIX) \ + --with-mpfr=$(BREW_PREFIX) \ + --with-mpc=$(BREW_PREFIX) endif