summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNathaniel Graff <nathaniel.graff@sifive.com>2018-12-19 10:16:49 -0800
committerNathaniel Graff <nathaniel.graff@sifive.com>2019-01-03 12:49:11 -0800
commit2f9ad037ac7a28031cfff935a97627796b939d02 (patch)
treef2415efa177b62ef920037d92a87f7c1c93fd921 /Makefile
parentc76aefe2bce1715e324c6e01c34954e6a8656632 (diff)
Link with libgcc
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ff6207d..4ac8176 100644
--- a/Makefile
+++ b/Makefile
@@ -237,7 +237,7 @@ $(PROGRAM_ELF): \
CFLAGS="-Os -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -g" \
CXXFLAGS="-Os -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -g" \
LDFLAGS="-nostartfiles -nostdlib -L$(sort $(dir $(abspath $(filter %.a,$^)))) -T$(abspath $(filter %.lds,$^))" \
- LDLIBS="-Wl,--start-group -lc -lmee -lmee-gloss -Wl,--end-group"
+ LDLIBS="-Wl,--start-group -lc -lgcc -lmee -lmee-gloss -Wl,--end-group"
touch -c $@
$(PROGRAM_HEX): \