@@ -759,7 +759,7 @@ compile-check: tidy \
759
759
% .stage0$(X ) : % .stage0.o $(SREQ0 )
760
760
@$(call E, link [gcc]: $@ )
761
761
$(Q ) gcc $(CFG_GCC_CFLAGS ) stage0/glue.o -o $@ $< \
762
- -Lstage0 -Lrt -lrustrt -lstd
762
+ -Lstage0 -Lrt -lrustrt -lstd -lm
763
763
@# dsymutil sometimes fails or prints a warning, but the
764
764
@# program still runs. Since it simplifies debugging other
765
765
@# programs, I\'ll live with the noise.
@@ -768,7 +768,7 @@ compile-check: tidy \
768
768
% .stage1(X) : % .stage1.o $(SREQ1 )
769
769
@$(call E, link [gcc]: $@ )
770
770
$(Q ) gcc $(CFG_GCC_CFLAGS ) stage1/glue.o -o $@ $< \
771
- -Lstage1 -Lrt -lrustrt -lstd
771
+ -Lstage1 -Lrt -lrustrt -lstd -lm
772
772
@# dsymutil sometimes fails or prints a warning, but the
773
773
@# program still runs. Since it simplifies debugging other
774
774
@# programs, I\'ll live with the noise.
@@ -777,7 +777,7 @@ compile-check: tidy \
777
777
% .stage2$(X ) : % .stage2.o $(SREQ2 )
778
778
@$(call E, link [gcc]: $@ )
779
779
$(Q ) gcc $(CFG_GCC_CFLAGS ) stage2/glue.o -o $@ $< \
780
- -Lstage2 -Lrt -lrustrt -lstd
780
+ -Lstage2 -Lrt -lrustrt -lstd -lm
781
781
@# dsymutil sometimes fails or prints a warning, but the
782
782
@# program still runs. Since it simplifies debugging other
783
783
@# programs, I\'ll live with the noise.
0 commit comments