Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support apple M1 (arm64) #129

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tools/geohot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ ifneq (,$(findstring Darwin,$(UNAME)))
CXXFLAGS += -fvisibility=hidden
CFLAGS += -I/usr/local/include -I/usr/local/opt/libelf/include/libelf -I/usr/local/opt/openssl/include
LDFLAGS += -mmacosx-version-min=$(OSX_MIN) -Wl,-syslibroot,$(SDK) -L/opt/local/lib -L/usr/local/opt/openssl/lib -lgmp -lcrypto -lz

ifneq (,$(findstring arm,$(shell uname -p)))
CFLAGS += -I/opt/homebrew/include -I/opt/homebrew/opt/libelf/include/libelf -I/opt/homebrew/opt/openssl/include
LDFLAGS += -L/opt/homebrew/lib -L/opt/homebrew/opt/openssl/lib
endif

endif

ifneq (,$(findstring BSD,$(UNAME)))
Expand Down
5 changes: 3 additions & 2 deletions tools/sprxlinker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ ifneq (,$(findstring CYGWIN,$(UNAME)))
endif

ifneq (,$(findstring Darwin,$(UNAME)))
CFLAGS += -I/opt/local/include -I/usr/local/opt/libelf/include/libelf
LDFLAGS += -L/opt/local/lib -lelf
CFLAGS += -I/opt/local/include -I/usr/local/opt/libelf/include/libelf \
-I/opt/homebrew/include -I/opt/homebrew/opt/libelf/include/libelf
LDFLAGS += -L/opt/local/lib -L/opt/homebrew/lib -lelf
OS := Mac
endif

Expand Down