diff --git a/boards/x86_64/intel64/qemu-intel64/scripts/Make.defs b/boards/x86_64/intel64/qemu-intel64/scripts/Make.defs index 28900248de..10cf08f490 100644 --- a/boards/x86_64/intel64/qemu-intel64/scripts/Make.defs +++ b/boards/x86_64/intel64/qemu-intel64/scripts/Make.defs @@ -57,7 +57,7 @@ CROSSDEV = i486-nuttx-elf- endif ifeq ($(CONFIG_HOST_MACOS),y) -CROSSDEV = 86_64-elf- +CROSSDEV = x86_64-elf- endif CC = $(CROSSDEV)gcc @@ -73,6 +73,10 @@ CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(A CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) AFLAGS = $(CFLAGS) -D__ASSEMBLY__ +ifeq ($(CONFIG_HOST_MACOS),y) +AFLAGS += -Wa,--divide +endif + EXEEXT = .elf ifeq ($(CONFIG_DEBUG_SYMBOLS),y)