From 3f12e37531d86d17fb5b3b1e2711d9ff62e00742 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 25 Jul 2009 00:01:21 +0200 Subject: [PATCH] The -L linker option should come before any ldscript file. --- examples/fancyblink/Makefile | 2 +- examples/miniblink/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/fancyblink/Makefile b/examples/fancyblink/Makefile index b48c9877..a5527be5 100644 --- a/examples/fancyblink/Makefile +++ b/examples/fancyblink/Makefile @@ -31,7 +31,7 @@ TOOLCHAIN_DIR = ../.. CFLAGS = -O0 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \ -mcpu=cortex-m3 -mthumb LDSCRIPT = $(TOOLCHAIN_DIR)/lib/libopenstm32.ld -LDFLAGS = -T$(LDSCRIPT) -nostartfiles -L$(TOOLCHAIN_DIR)/lib +LDFLAGS = -L$(TOOLCHAIN_DIR)/lib -T$(LDSCRIPT) -nostartfiles OBJS = $(BINARY).o OPENOCD = openocd diff --git a/examples/miniblink/Makefile b/examples/miniblink/Makefile index 0b5a57b2..88d7606f 100644 --- a/examples/miniblink/Makefile +++ b/examples/miniblink/Makefile @@ -31,7 +31,7 @@ TOOLCHAIN_DIR = ../.. CFLAGS = -O0 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \ -mcpu=cortex-m3 -mthumb LDSCRIPT = $(TOOLCHAIN_DIR)/lib/libopenstm32.ld -LDFLAGS = -T$(LDSCRIPT) -nostartfiles -L$(TOOLCHAIN_DIR)/lib +LDFLAGS = -L$(TOOLCHAIN_DIR)/lib -T$(LDSCRIPT) -nostartfiles OBJS = $(BINARY).o OPENOCD = openocd