summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/standalone.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/standalone.mk b/scripts/standalone.mk
index 78328c5..cc35559 100644
--- a/scripts/standalone.mk
+++ b/scripts/standalone.mk
@@ -96,6 +96,10 @@ RISCV_CXXFLAGS += -ffunction-sections -fdata-sections
RISCV_ASFLAGS += -I$(abspath $(BSP_DIR)/install/include/)
RISCV_CFLAGS += -I$(abspath $(BSP_DIR)/install/include/)
RISCV_CXXFLAGS += -I$(abspath $(BSP_DIR)/install/include/)
+# Use newlib-nano
+RISCV_ASFLAGS += --specs=nano.specs
+RISCV_CFLAGS += --specs=nano.specs
+RISCV_CXXFLAGS += --specs=nano.specs
# Turn on garbage collection for unused sections
RISCV_LDFLAGS += -Wl,--gc-sections