Skip to content
Snippets Groups Projects
Commit f9d19f04 authored by Pavel Pisa's avatar Pavel Pisa
Browse files

seminaries/binrep/qtrvsim_binrep: add libgcc.a to the final executable link.


The libgcc provides helper functions as __mulsi3 which are necessary
for limited rv32i instruction set to allow complete C operators
and floats use.

Signed-off-by: default avatarPavel Pisa <pisa@cmp.felk.cvut.cz>
parent b3619316
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,8 @@ LDFLAGS += -nostdlib
LDFLAGS += -static
#LDFLAGS += -specs=/opt/musl/riscv64-linux-gnu/lib/musl-gcc.specs
LOADLIBES += -lgcc
CFLAGS += $(ARCHFLAGS)
CXXFLAGS+= $(ARCHFLAGS)
AFLAGS += $(ARCHFLAGS)
......@@ -51,7 +53,7 @@ all : default
default : $(TARGET_EXE)
$(TARGET_EXE) : $(OBJECTS)
$(CC) $(LDFLAGS) $^ -o $@
$(CC) $(LDFLAGS) $^ $(LOADLIBES) -o $@
dep: depend
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment