Makefile: detect new Homebrew location for ARM-based Macs
commitd52b426ad4b038e09421c2e3a3c991832e1eec97
authorPatrick Steinhardt <ps@pks.im>
Thu, 18 Jan 2024 10:22:49 +0000 (18 11:22 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Jan 2024 19:53:17 +0000 (18 11:53 -0800)
tree2734c26d9edecc93fcb5cfc7faeb699ba744b618
parentf591a9bfebce123acca44ede12a4327ec1804b65
Makefile: detect new Homebrew location for ARM-based Macs

With the introduction of the ARM-based Macs the default location for
Homebrew has changed from "/usr/local" to "/opt/homebrew". We only
handle the former location though, which means that unless the user has
manually configured required search paths we won't be able to locate it.

Improve upon this by adding relevant paths to our CFLAGS and LDFLAGS as
well as detecting the location of msgfmt(1).

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.mak.uname