Fix wrong prefix on x86_64 builds in macOS

This commit is contained in:
Brennan Ashton 2020-05-31 20:29:38 -07:00 committed by Xiang Xiao
parent b932b653dd
commit 9b87732b47
1 changed files with 5 additions and 1 deletions

View File

@ -57,7 +57,7 @@ CROSSDEV = i486-nuttx-elf-
endif endif
ifeq ($(CONFIG_HOST_MACOS),y) ifeq ($(CONFIG_HOST_MACOS),y)
CROSSDEV = 86_64-elf- CROSSDEV = x86_64-elf-
endif endif
CC = $(CROSSDEV)gcc CC = $(CROSSDEV)gcc
@ -73,6 +73,10 @@ CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(A
CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
AFLAGS = $(CFLAGS) -D__ASSEMBLY__ AFLAGS = $(CFLAGS) -D__ASSEMBLY__
ifeq ($(CONFIG_HOST_MACOS),y)
AFLAGS += -Wa,--divide
endif
EXEEXT = .elf EXEEXT = .elf
ifeq ($(CONFIG_DEBUG_SYMBOLS),y) ifeq ($(CONFIG_DEBUG_SYMBOLS),y)