Browse Source

bare-arm, stmhal: Fix --nostdlib to -nostdlib

-nostdlib is the correct option, gcc recognizes the double dash version
when in link-only mode, but not when compiling.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
pull/700/head
Sven Wegener 11 years ago
parent
commit
afc67c6dc5
  1. 2
      bare-arm/Makefile
  2. 2
      stmhal/Makefile

2
bare-arm/Makefile

@ -22,7 +22,7 @@ else
CFLAGS += -Os -DNDEBUG
endif
LDFLAGS = --nostdlib -T stm32f405.ld
LDFLAGS = -nostdlib -T stm32f405.ld
LIBS =
SRC_C = \

2
stmhal/Makefile

@ -53,7 +53,7 @@ else
COPT += -Os -DNDEBUG
endif
LDFLAGS = --nostdlib -T stm32f405.ld -Map=$(@:.elf=.map) --cref
LDFLAGS = -nostdlib -T stm32f405.ld -Map=$(@:.elf=.map) --cref
LIBS =
# uncomment this if you want libgcc

Loading…
Cancel
Save