Browse Source

The -L linker option should come before any ldscript file.

pull/2/head
Uwe Hermann 16 years ago
parent
commit
3f12e37531
  1. 2
      examples/fancyblink/Makefile
  2. 2
      examples/miniblink/Makefile

2
examples/fancyblink/Makefile

@ -31,7 +31,7 @@ TOOLCHAIN_DIR = ../..
CFLAGS = -O0 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \ CFLAGS = -O0 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
-mcpu=cortex-m3 -mthumb -mcpu=cortex-m3 -mthumb
LDSCRIPT = $(TOOLCHAIN_DIR)/lib/libopenstm32.ld 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 OBJS = $(BINARY).o
OPENOCD = openocd OPENOCD = openocd

2
examples/miniblink/Makefile

@ -31,7 +31,7 @@ TOOLCHAIN_DIR = ../..
CFLAGS = -O0 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \ CFLAGS = -O0 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
-mcpu=cortex-m3 -mthumb -mcpu=cortex-m3 -mthumb
LDSCRIPT = $(TOOLCHAIN_DIR)/lib/libopenstm32.ld 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 OBJS = $(BINARY).o
OPENOCD = openocd OPENOCD = openocd

Loading…
Cancel
Save