Skip to content

Commit

Permalink
Merge pull request #266 from dscho/brew-gettext-update-vfs
Browse files Browse the repository at this point in the history
macOS/brew: let the build find gettext headers/libraries/msgfmt
  • Loading branch information
dscho committed Apr 30, 2020
2 parents 6850d56 + c148393 commit 00189d7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions config.mak.uname
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00189d7

Please sign in to comment.