diff --git a/examples/lm4f/Makefile.include b/examples/lm4f/Makefile.include index 4d2675c5..60987e8d 100644 --- a/examples/lm4f/Makefile.include +++ b/examples/lm4f/Makefile.include @@ -36,7 +36,7 @@ $(info We seem to be building the example in the source directory. Using local l endif endif -ARCH_FLAGS = -mthumb -mcpu=cortex-m4 +ARCH_FLAGS = -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 CFLAGS += -O0 -g3 -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \ -fno-common $(ARCH_FLAGS) -MD -DLM4F LDSCRIPT ?= $(BINARY).ld diff --git a/lib/lm4f/Makefile b/lib/lm4f/Makefile index c4c2aa73..8f4c1519 100644 --- a/lib/lm4f/Makefile +++ b/lib/lm4f/Makefile @@ -24,7 +24,7 @@ PREFIX ?= arm-none-eabi CC = $(PREFIX)-gcc AR = $(PREFIX)-ar CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \ - -mcpu=cortex-m4 -mthumb -Wstrict-prototypes \ + -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DLM4F # ARFLAGS = rcsv ARFLAGS = rcs