Add support for Apple Silicon (M1)

This commit is contained in:
tcprst
2021-01-03 19:27:20 -05:00
parent eaee80f3d7
commit ecd52347fa
5 changed files with 38 additions and 7 deletions

View File

@@ -57,6 +57,11 @@ else
RANLIB= ranlib
endif
# For detection of Apple Silicon
ifeq ($(platform),Darwin)
BREW_PREFIX = $(shell brew --prefix)
endif
ifeq ($(DEBUG),1)
DEFCXXFLAGS = -g -O0 -pipe
DEFCFLAGS = -g -O0 -fstrict-aliasing -pipe