Skip to content

Commit 92a1377

Browse files
dschogitster
authored andcommitted
macOS: make sure that gettext is found
Due to reasons (some XCode versions seem to include gettext, some don't?), Homebrew does not expose the libraries and headers in /usr/local/ by default anymore. Let's help find them again. Note: for some reason, this is a change of behavior caused by the upgrade to Mojave, identified in our Azure Pipeline; it seems that Homebrew used to add the /usr/local/ directories to the include and link search path before, but now it no longer does. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent aeb582a commit 92a1377

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config.mak.uname

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ ifeq ($(uname_S),Darwin)
114114
HAVE_BSD_SYSCTL = YesPlease
115115
FREAD_READS_DIRECTORIES = UnfortunatelyYes
116116
HAVE_NS_GET_EXECUTABLE_PATH = YesPlease
117+
BASIC_CFLAGS += -I/usr/local/include
118+
BASIC_LDFLAGS += -L/usr/local/lib
117119
endif
118120
ifeq ($(uname_S),SunOS)
119121
NEEDS_SOCKET = YesPlease

0 commit comments

Comments
 (0)