Fix: Issue with makefile on 64-bit MacOS (Mojave) since 32-bit is now unsupported.

This commit is contained in:
Doug Cooper 2019-01-01 09:16:49 -05:00
commit 00a24fa941
2 changed files with 7 additions and 1 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
hdhomerun_config
libhdhomerun.dylib

View file

@ -32,7 +32,11 @@ else
LDFLAGS += -lsocket
endif
ifeq ($(OS),Darwin)
CFLAGS += -arch i386 -arch x86_64
ifeq ($(shell uname -m),x86_64)
CFLAGS += -arch x86_64
else
CFLAGS += -arch i386
endif
LIBEXT := .dylib
SHARED := -dynamiclib -install_name libhdhomerun$(LIBEXT)
endif