From deafbab9fcbf48e95c1a4e9c678866afb9dde8d5 Mon Sep 17 00:00:00 2001 From: Hoernchen Date: Sun, 9 Jun 2013 00:02:30 +0200 Subject: [PATCH] lib: make sure to tell the linker that we're hardfloat, or it will choose the wrong libgcc.a... --- firmware/common/Makefile_inc.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/common/Makefile_inc.mk b/firmware/common/Makefile_inc.mk index 8917beda..fc22f2b9 100644 --- a/firmware/common/Makefile_inc.mk +++ b/firmware/common/Makefile_inc.mk @@ -54,8 +54,8 @@ CFLAGS += -std=gnu99 -Os -g3 -Wall -Wextra -I$(LIBOPENCM3)/include -I../common \ -fno-common -mcpu=cortex-m4 -mthumb -MD \ -mfloat-abi=hard -mfpu=fpv4-sp-d16 \ $(HACKRF_OPTS) -LDFLAGS += -L$(TOOLCHAIN_DIR)/lib/armv7e-m/fpu \ - -L../common \ +LDFLAGS += -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 \ + -L$(TOOLCHAIN_DIR)/lib/armv7e-m/fpu -L../common \ -L$(LIBOPENCM3)/lib -L$(LIBOPENCM3)/lib/lpc43xx \ -T$(LDSCRIPT) -nostartfiles \ -Wl,--gc-sections -Xlinker -Map=$(BINARY).map