forked from M-Labs/artiq
runtime: link ksupport with libm, not runtime.
We need libm for the %g format specifier.
This commit is contained in:
parent
d3dcb4b8a2
commit
999290fe52
|
@ -36,11 +36,10 @@ runtime.elf: $(OBJECTS) libruntime.a
|
||||||
$(OBJECTS) \
|
$(OBJECTS) \
|
||||||
-L../libcompiler-rt \
|
-L../libcompiler-rt \
|
||||||
-L../libbase \
|
-L../libbase \
|
||||||
-L../libm \
|
|
||||||
-L../liballoc \
|
-L../liballoc \
|
||||||
-L../liblwip \
|
-L../liblwip \
|
||||||
-Lcargo/or1k-unknown-none/debug/ \
|
-Lcargo/or1k-unknown-none/debug/ \
|
||||||
-lruntime -lbase -lm -lcompiler-rt -lalloc -llwip
|
-lruntime -lbase-nofloat -lcompiler-rt -lalloc -llwip
|
||||||
@chmod -x $@
|
@chmod -x $@
|
||||||
|
|
||||||
ksupport.elf: $(OBJECTS_KSUPPORT)
|
ksupport.elf: $(OBJECTS_KSUPPORT)
|
||||||
|
@ -51,10 +50,11 @@ ksupport.elf: $(OBJECTS_KSUPPORT)
|
||||||
../libbase/crt0-$(CPU).o \
|
../libbase/crt0-$(CPU).o \
|
||||||
$^ \
|
$^ \
|
||||||
-L../libbase \
|
-L../libbase \
|
||||||
|
-L../libm \
|
||||||
-L../libcompiler-rt \
|
-L../libcompiler-rt \
|
||||||
-L../libunwind \
|
-L../libunwind \
|
||||||
-L../libdyld \
|
-L../libdyld \
|
||||||
-lbase-nofloat -lcompiler-rt -ldyld -lunwind
|
-lbase -lm -lcompiler-rt -ldyld -lunwind
|
||||||
@chmod -x $@
|
@chmod -x $@
|
||||||
|
|
||||||
ksupport_data.o: ksupport.elf
|
ksupport_data.o: ksupport.elf
|
||||||
|
|
Loading…
Reference in New Issue