1
0
mirror of https://github.com/bebbo/amiga-gcc.git synced 2026-05-03 18:07:54 +00:00

autodetect install location of homebrew

This commit is contained in:
Christian Vogelgsang
2021-11-27 13:42:59 +01:00
parent b34b4b1151
commit 652b6a7e9b

View File

@@ -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