diff --git a/litex/soc/software/bios/Makefile b/litex/soc/software/bios/Makefile index 4ad3692e4..ea1b00b26 100755 --- a/litex/soc/software/bios/Makefile +++ b/litex/soc/software/bios/Makefile @@ -64,7 +64,7 @@ bios.elf: $(BIOS_DIRECTORY)/linker.ld $(OBJECTS) ../libfatfs/libfatfs.a \ ../liblitesdcard/liblitesdcard.a \ ../liblitesata/liblitesata.a - $(LD) $(LDFLAGS) -T $(BIOS_DIRECTORY)/linker.ld -N -o $@ \ + $(CC) $(LDFLAGS) -T $(BIOS_DIRECTORY)/linker.ld -N -o $@ \ ../libbase/crt0.o \ $(OBJECTS) \ -L../libcompiler_rt \ diff --git a/litex/soc/software/demo/Makefile b/litex/soc/software/demo/Makefile index a9a99c206..a71fcc295 100644 --- a/litex/soc/software/demo/Makefile +++ b/litex/soc/software/demo/Makefile @@ -18,7 +18,7 @@ all: demo.bin chmod -x $@ demo.elf: $(OBJECTS) - $(LD) $(LDFLAGS) \ + $(CC) $(LDFLAGS) \ -T linker.ld \ -N -o $@ \ $(BUILD_DIR)/software/libbase/crt0.o \