Fix compilation on M1 Macs

This commit is contained in:
Doridian committed 2022-03-27 11:09:44 -07:00
1 parent cce9edcd0f
commit 517ddf4bfc
2 files changed
+10 -1

No files matched your search

+1
View File
@@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log...
## [unreleased][unreleased]
- Fixed compilation of mfd_aes_brute on Apple M1 based Macs (@Doridian)
- Changed calculation of companion ARM firmware hash to be uniform accross platforms (@Doridian)
- Changed `hf mf *` - verbose flag now also decode and prints found value blocks (@iceman1001)
- Changed `hf mf wrbl` - added more helptext and new param --force to point out block0 writes (@iceman1001)
+9 -1
View File
@@ -1,10 +1,18 @@
MYSRCPATHS = ../../common ../../common/mbedtls
MYSRCS = util_posix.c randoms.c
MYINCLUDES = -I../../include -I../../common -I../../common/mbedtls
MYCFLAGS = -march=native -Ofast
MYCFLAGS = -Ofast
MYDEFS =
MYLDLIBS = -lcrypto
# A better way would be to just try compiling with march and seeing if we succeed
cpu_arch = $(shell uname -m)
ifneq ($(findstring arm64, $(cpu_arch)), )
MYCFLAGS += -mcpu=native
else
MYCFLAGS += -march=native
endif
ifneq ($(SKIPPTHREAD),1)
MYLDLIBS += -lpthread
endif