summaryrefslogtreecommitdiff
path: root/config.mak.uname
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-05-01 20:39:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-05-01 20:39:57 (GMT)
commitaabf3ea14439bccc87bdfd3d23315a19f928fab4 (patch)
treef574cf978058d70e76b238e02d62b2f39441febb /config.mak.uname
parentbf04590ecdf87d0ad034f7fbff36a10eb20637cb (diff)
parenta0b31086182541750367f5625f2abd79e80819b0 (diff)
downloadgit-aabf3ea14439bccc87bdfd3d23315a19f928fab4.zip
git-aabf3ea14439bccc87bdfd3d23315a19f928fab4.tar.gz
git-aabf3ea14439bccc87bdfd3d23315a19f928fab4.tar.bz2
Merge branch 'ds/build-homebrew-gettext-fix'
Recent update to Homebrew used by macOS folks breaks build by moving gettext library and necessary headers. * ds/build-homebrew-gettext-fix: macOS/brew: let the build find gettext headers/libraries/msgfmt
Diffstat (limited to 'config.mak.uname')
-rw-r--r--config.mak.uname13
1 files changed, 11 insertions, 2 deletions
diff --git a/config.mak.uname b/config.mak.uname
index 3e526f6..87c7f8d 100644
--- a/config.mak.uname
+++ b/config.mak.uname
@@ -133,8 +133,17 @@ ifeq ($(uname_S),Darwin)
HAVE_BSD_SYSCTL = YesPlease
FREAD_READS_DIRECTORIES = UnfortunatelyYes
HAVE_NS_GET_EXECUTABLE_PATH = YesPlease
- BASIC_CFLAGS += -I/usr/local/include
- BASIC_LDFLAGS += -L/usr/local/lib
+
+ # Workaround for `gettext` being keg-only and not even being linked via
+ # `brew link --force gettext`, should be obsolete as of
+ # https://github.com/Homebrew/homebrew-core/pull/53489
+ ifeq ($(shell test -d /usr/local/opt/gettext/ && echo y),y)
+ BASIC_CFLAGS += -I/usr/local/include -I/usr/local/opt/gettext/include
+ BASIC_LDFLAGS += -L/usr/local/lib -L/usr/local/opt/gettext/lib
+ ifeq ($(shell test -x /usr/local/opt/gettext/bin/msgfmt && echo y),y)
+ MSGFMT = /usr/local/opt/gettext/bin/msgfmt
+ endif
+ endif
endif
ifeq ($(uname_S),SunOS)
NEEDS_SOCKET = YesPlease