Use libgcc from Arch on SAMD21 (it's smaller.)

Fixes #4705
This commit is contained in:
Scott Shawcroft 2022-08-04 11:33:24 -07:00
parent eb7ddf52e6
commit e7d72b1ebe
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA
2 changed files with 3 additions and 1 deletions

View File

@ -164,6 +164,9 @@ CFLAGS += \
-msoft-float \
-mfloat-abi=soft \
-DSAMD21
LIBS := libs/libgcc-12.1.0-Os-v6-m-nofp.a -lc
else
LIBS := -lgcc -lc
endif
ifeq ($(CHIP_FAMILY), samd51)
CFLAGS += \
@ -200,7 +203,6 @@ endif
CFLAGS += -Wno-stringop-overread -Wno-stringop-overflow
LDFLAGS = $(CFLAGS) -nostartfiles -Wl,-nostdlib -Wl,-T,$(GENERATED_LD_FILE) -Wl,-Map=$@.map -Wl,-cref -Wl,-gc-sections -specs=nano.specs
LIBS := -lgcc -lc
# Use toolchain libm if we're not using our own.
ifndef INTERNAL_LIBM

Binary file not shown.