summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <sven.wegener@stealer.net>2014-06-14 17:41:13 +0200
committerSven Wegener <sven.wegener@stealer.net>2014-06-18 13:33:47 +0200
commitafc67c6dc5c66f671efd6d1ebb2ed725ced8cb3e (patch)
treea920969f90b3eb782a25ff33e3d1b6a07fa7d537
parent720f55cc4bb15818b8df845e11647bbafa9709c7 (diff)
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>
-rw-r--r--bare-arm/Makefile2
-rw-r--r--stmhal/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/bare-arm/Makefile b/bare-arm/Makefile
index 745945deb..82312cd85 100644
--- a/bare-arm/Makefile
+++ b/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 = \
diff --git a/stmhal/Makefile b/stmhal/Makefile
index e27dd7b6c..5a801ced2 100644
--- a/stmhal/Makefile
+++ b/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