Skip to content

Commit 4ab86b8

Browse files
authored
fix cross compile from darwin arm64 to x86_64 (#3716)
1 parent 478e5ab commit 4ab86b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/platform-darwin.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ endif
2323
ifeq ($(ASM_ARCH), x86)
2424
ASMFLAGS += -DPREFIX
2525
ifeq ($(ARCH), x86_64)
26+
CFLAGS += -arch x86_64
27+
LDFLAGS += -arch x86_64
2628
ASMFLAGS += -f macho64
2729
else
30+
CFLAGS += -arch i386
31+
LDFLAGS += -arch i386
2832
ASMFLAGS += -f macho
2933
LDFLAGS += -read_only_relocs suppress
3034
endif

0 commit comments

Comments
 (0)