Skip to content

Commit afc67c6

Browse files
committed
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>
1 parent 720f55c commit afc67c6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bare-arm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ else
2222
CFLAGS += -Os -DNDEBUG
2323
endif
2424

25-
LDFLAGS = --nostdlib -T stm32f405.ld
25+
LDFLAGS = -nostdlib -T stm32f405.ld
2626
LIBS =
2727

2828
SRC_C = \

stmhal/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ else
5353
COPT += -Os -DNDEBUG
5454
endif
5555

56-
LDFLAGS = --nostdlib -T stm32f405.ld -Map=$(@:.elf=.map) --cref
56+
LDFLAGS = -nostdlib -T stm32f405.ld -Map=$(@:.elf=.map) --cref
5757
LIBS =
5858

5959
# uncomment this if you want libgcc

0 commit comments

Comments
 (0)