Skip to content

Commit

Permalink
fix cross compile from darwin arm64 to x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuzeitou authored Dec 20, 2023
1 parent cfbd589 commit fedec14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/platform-darwin.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ endif
ifeq ($(ASM_ARCH), x86)
ASMFLAGS += -DPREFIX
ifeq ($(ARCH), x86_64)
CFLAGS += -arch x86_64
LDFLAGS += -arch x86_64
ASMFLAGS += -f macho64
else
CFLAGS += -arch i386
LDFLAGS += -arch i386
ASMFLAGS += -f macho
LDFLAGS += -read_only_relocs suppress
endif
Expand Down

0 comments on commit fedec14

Please sign in to comment.