diff --git a/Documentation/guides/fully_linked_elf.rst b/Documentation/guides/fully_linked_elf.rst index b00f3df0c4..4fe60c8322 100644 --- a/Documentation/guides/fully_linked_elf.rst +++ b/Documentation/guides/fully_linked_elf.rst @@ -209,7 +209,7 @@ Below is the ``Makefile`` used to create the ELF program: ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer ARCHINCLUDES = -I. -isystem nuttx-export-7.25/include - CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHINCLUDES) -pipe + CFLAGS = $(ARCHCPUFLAGS) $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHINCLUDES) -pipe CROSSDEV = arm-none-eabi- CC = $(CROSSDEV)gcc diff --git a/Documentation/guides/partially_linked_elf.rst b/Documentation/guides/partially_linked_elf.rst index bade7df974..8ab0d7502c 100644 --- a/Documentation/guides/partially_linked_elf.rst +++ b/Documentation/guides/partially_linked_elf.rst @@ -241,7 +241,7 @@ The Makefile used to create the ELF program is as follows: ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer ARCHINCLUDES = -I. -isystem nuttx-export-7.25/include - CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHINCLUDES) -pipe + CFLAGS = $(ARCHCPUFLAGS) $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHINCLUDES) -pipe CROSSDEV = arm-none-eabi- CC = $(CROSSDEV)gcc