lib: make sure to tell the linker that we're hardfloat, or it will choose the wrong libgcc.a...
This commit is contained in:

committed by
Sylvain Munaut

parent
fe7558fcf3
commit
deafbab9fc
@ -54,8 +54,8 @@ CFLAGS += -std=gnu99 -Os -g3 -Wall -Wextra -I$(LIBOPENCM3)/include -I../common \
|
|||||||
-fno-common -mcpu=cortex-m4 -mthumb -MD \
|
-fno-common -mcpu=cortex-m4 -mthumb -MD \
|
||||||
-mfloat-abi=hard -mfpu=fpv4-sp-d16 \
|
-mfloat-abi=hard -mfpu=fpv4-sp-d16 \
|
||||||
$(HACKRF_OPTS)
|
$(HACKRF_OPTS)
|
||||||
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib/armv7e-m/fpu \
|
LDFLAGS += -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 \
|
||||||
-L../common \
|
-L$(TOOLCHAIN_DIR)/lib/armv7e-m/fpu -L../common \
|
||||||
-L$(LIBOPENCM3)/lib -L$(LIBOPENCM3)/lib/lpc43xx \
|
-L$(LIBOPENCM3)/lib -L$(LIBOPENCM3)/lib/lpc43xx \
|
||||||
-T$(LDSCRIPT) -nostartfiles \
|
-T$(LDSCRIPT) -nostartfiles \
|
||||||
-Wl,--gc-sections -Xlinker -Map=$(BINARY).map
|
-Wl,--gc-sections -Xlinker -Map=$(BINARY).map
|
||||||
|
Reference in New Issue
Block a user