From d6e0e6e976916f7a72abf92318b65ab96b291b78 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 25 Sep 2012 00:31:31 +0300 Subject: Explicitly link example binaries statically. This allow good share of binaries be linkable (and actually run) with a typical distro-packaged ARM toolchain (Cortex-A and Linux targetted). --- examples/stm32/f2/Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/stm32/f2/Makefile.include') diff --git a/examples/stm32/f2/Makefile.include b/examples/stm32/f2/Makefile.include index 3e338af..690f8c4 100644 --- a/examples/stm32/f2/Makefile.include +++ b/examples/stm32/f2/Makefile.include @@ -37,7 +37,7 @@ endif CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \ -fno-common -mcpu=cortex-m3 -mthumb -msoft-float -MD -DSTM32F2 LDSCRIPT ?= $(BINARY).ld -LDFLAGS += -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group \ +LDFLAGS += --static -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group \ -L$(TOOLCHAIN_DIR)/lib -L$(TOOLCHAIN_DIR)/lib/stm32/f2 \ -T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections \ -mthumb -march=armv7 -mfix-cortex-m3-ldrd -msoft-float -- cgit v1.2.3