Skip to content

Commit 2cbe2bc

Browse files
committed
Link with -lm now that it is not included with --whole-archive when
building rustllvm.
1 parent f8e22cd commit 2cbe2bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ compile-check: tidy \
759759
%.stage0$(X): %.stage0.o $(SREQ0)
760760
@$(call E, link [gcc]: $@)
761761
$(Q)gcc $(CFG_GCC_CFLAGS) stage0/glue.o -o $@ $< \
762-
-Lstage0 -Lrt -lrustrt -lstd
762+
-Lstage0 -Lrt -lrustrt -lstd -lm
763763
@# dsymutil sometimes fails or prints a warning, but the
764764
@# program still runs. Since it simplifies debugging other
765765
@# programs, I\'ll live with the noise.
@@ -768,7 +768,7 @@ compile-check: tidy \
768768
%.stage1(X): %.stage1.o $(SREQ1)
769769
@$(call E, link [gcc]: $@)
770770
$(Q)gcc $(CFG_GCC_CFLAGS) stage1/glue.o -o $@ $< \
771-
-Lstage1 -Lrt -lrustrt -lstd
771+
-Lstage1 -Lrt -lrustrt -lstd -lm
772772
@# dsymutil sometimes fails or prints a warning, but the
773773
@# program still runs. Since it simplifies debugging other
774774
@# programs, I\'ll live with the noise.
@@ -777,7 +777,7 @@ compile-check: tidy \
777777
%.stage2$(X): %.stage2.o $(SREQ2)
778778
@$(call E, link [gcc]: $@)
779779
$(Q)gcc $(CFG_GCC_CFLAGS) stage2/glue.o -o $@ $< \
780-
-Lstage2 -Lrt -lrustrt -lstd
780+
-Lstage2 -Lrt -lrustrt -lstd -lm
781781
@# dsymutil sometimes fails or prints a warning, but the
782782
@# program still runs. Since it simplifies debugging other
783783
@# programs, I\'ll live with the noise.

0 commit comments

Comments
 (0)