Makefile: Fix build on OS X

OS X doesn't have GNU gettext stuff in their libc, so it needs
to be linked. This will probably also need to be adjusted for
any other non-Linux builds (e.g. FreeBSD)
This commit is contained in:
Fabian Kurz 2020-07-31 15:39:20 +02:00
parent f07aeef314
commit 8351f93d04
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@ ifeq ($(USE_OGG), YES)
LDFLAGS:=$(LDFLAGS) -lvorbis -lvorbisenc -logg
endif
UNAME := $(shell uname)
ifeq ($(UNAME), Darwin)
LDFLAGS += +lintl
endif
all: ebook2cw