From d72380c871f6a74b39d8a169848af2e45043d21e Mon Sep 17 00:00:00 2001 From: Mateusz Holenko Date: Thu, 25 Jun 2020 12:21:36 +0200 Subject: [PATCH] Fix ordering of libraries Since libcompiler_rt provides functions for other libraries (e.g., __muldiv3), it must be listed at the end. --- litex/soc/software/bios/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/software/bios/Makefile b/litex/soc/software/bios/Makefile index 778757da..35a07f5c 100755 --- a/litex/soc/software/bios/Makefile +++ b/litex/soc/software/bios/Makefile @@ -75,7 +75,7 @@ bios.elf: $(BIOS_DIRECTORY)/linker.ld $(OBJECTS) -L../liblitespi \ -L../liblitesdcard \ $(BP_LIBS) \ - -lcompiler_rt -llitedram -lliteeth -llitespi -llitesdcard -lbase-nofloat \ + -llitedram -lliteeth -llitespi -llitesdcard -lbase-nofloat -lcompiler_rt \ $(BP_FLAGS) ifneq ($(OS),Windows_NT) -- 2.30.2