soc/software: fix libcompiler_rt mulsi3.c compile
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 4 Apr 2016 06:36:23 +0000 (08:36 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 4 Apr 2016 06:36:23 +0000 (08:36 +0200)
litex/soc/software/libcompiler_rt/Makefile

index 96d0387e6b1d89fb47d02ecbd07ea85da9391652..664dd20043d45a13b5437e6f27194415506248f8 100644 (file)
@@ -7,13 +7,14 @@ else
 CFLAGS+=-D_YUGA_LITTLE_ENDIAN=1 -D_YUGA_BIG_ENDIAN=0 -Wno-missing-prototypes
 endif
 
-OBJECTS=umodsi3.o udivsi3.o mulsi3.o divsi3.o modsi3.o comparesf2.o comparedf2.o negsf2.o negdf2.o addsf3.o subsf3.o mulsf3.o divsf3.o lshrdi3.o muldi3.o divdi3.o ashldi3.o ashrdi3.o udivmoddi4.o \
+OBJECTS=umodsi3.o udivsi3.o divsi3.o modsi3.o comparesf2.o comparedf2.o negsf2.o negdf2.o addsf3.o subsf3.o mulsf3.o divsf3.o lshrdi3.o muldi3.o divdi3.o ashldi3.o ashrdi3.o udivmoddi4.o \
   floatsisf.o floatunsisf.o fixsfsi.o fixdfdi.o fixunssfsi.o fixunsdfdi.o adddf3.o subdf3.o muldf3.o divdf3.o floatsidf.o floatunsidf.o floatdidf.o fixdfsi.o fixunsdfsi.o \
   clzsi2.o ctzsi2.o udivdi3.o umoddi3.o moddi3.o ucmpdi2.o
 
 all: libcompiler_rt.a
 
 libcompiler_rt.a: $(OBJECTS)
+       $(CC) -c $(CFLAGS) $(1) $(SOC_DIRECTORY)/software/libcompiler_rt/mulsi3.c -o mulsi3.o
        $(AR) crs libcompiler_rt.a $(OBJECTS)
 
 %.o: $(SOC_DIRECTORY)/software/compiler_rt/lib/builtins/%.c