Skip to content

Commit 8622c23

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
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 Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 1f720d9 + a0b3108 commit 8622c23

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

config.mak.uname

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,17 @@ ifeq ($(uname_S),Darwin)
133133
HAVE_BSD_SYSCTL = YesPlease
134134
FREAD_READS_DIRECTORIES = UnfortunatelyYes
135135
HAVE_NS_GET_EXECUTABLE_PATH = YesPlease
136-
BASIC_CFLAGS += -I/usr/local/include
137-
BASIC_LDFLAGS += -L/usr/local/lib
136+
137+
# Workaround for `gettext` being keg-only and not even being linked via
138+
# `brew link --force gettext`, should be obsolete as of
139+
# https://github.com/Homebrew/homebrew-core/pull/53489
140+
ifeq ($(shell test -d /usr/local/opt/gettext/ && echo y),y)
141+
BASIC_CFLAGS += -I/usr/local/include -I/usr/local/opt/gettext/include
142+
BASIC_LDFLAGS += -L/usr/local/lib -L/usr/local/opt/gettext/lib
143+
ifeq ($(shell test -x /usr/local/opt/gettext/bin/msgfmt && echo y),y)
144+
MSGFMT = /usr/local/opt/gettext/bin/msgfmt
145+
endif
146+
endif
138147
endif
139148
ifeq ($(uname_S),SunOS)
140149
NEEDS_SOCKET = YesPlease

0 commit comments

Comments
 (0)