Fix ordering of libraries
authorMateusz Holenko <mholenko@antmicro.com>
Thu, 25 Jun 2020 10:21:36 +0000 (12:21 +0200)
committerMateusz Holenko <mholenko@antmicro.com>
Thu, 25 Jun 2020 10:21:36 +0000 (12:21 +0200)
Since libcompiler_rt provides functions for other
libraries (e.g., __muldiv3), it must be listed
at the end.

litex/soc/software/bios/Makefile

index 778757da72905f7337c2a0ee79bed6d650e6934b..35a07f5cf45130b8815b9197e86a57c078052302 100755 (executable)
@@ -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)