Skip to content

Commit d22714f

Browse files
committed
Add -lrt to stateN link commands.
1 parent 4b946ce commit d22714f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -474,24 +474,24 @@ llvmext/%.o: llvmext/%.cpp $(MKFILES)
474474
######################################################################
475475

476476
%.stage0$(X): %.stage0.o rt/$(CFG_RUNTIME) stage0/glue.o
477-
@$(call E, link [llvm]: $@)
478-
$(Q)gcc $(CFG_GCC_CFLAGS) stage0/glue.o -o $@ $< -Lstage0 -lrustrt
477+
@$(call E, link [gcc]: $@)
478+
$(Q)gcc $(CFG_GCC_CFLAGS) stage0/glue.o -o $@ $< -Lstage0 -Lrt -lrustrt
479479
@# dsymutil sometimes fails or prints a warning, but the
480480
@# program still runs. Since it simplifies debugging other
481481
@# programs, I\'ll live with the noise.
482482
-$(Q)$(DSYMUTIL) $@
483483

484484
%.stage1(X): %.stage1.o rt/$(CFG_RUNTIME) stage1/glue.o
485-
@$(call E, link [llvm]: $@)
486-
$(Q)gcc $(CFG_GCC_CFLAGS) stage1/glue.o -o $@ $< -Lstage1 -lrustrt
485+
@$(call E, link [gcc]: $@)
486+
$(Q)gcc $(CFG_GCC_CFLAGS) stage1/glue.o -o $@ $< -Lstage1 -Lrt -lrustrt
487487
@# dsymutil sometimes fails or prints a warning, but the
488488
@# program still runs. Since it simplifies debugging other
489489
@# programs, I\'ll live with the noise.
490490
-$(Q)$(DSYMUTIL) $@
491491

492492
%.stage2(X): %.stage2.o rt/$(CFG_RUNTIME) stage2/glue.o
493-
@$(call E, link [llvm]: $@)
494-
$(Q)gcc $(CFG_GCC_CFLAGS) stage2/glue.o -o $@ $< -Lstage2 -lrustrt
493+
@$(call E, link [gcc]: $@)
494+
$(Q)gcc $(CFG_GCC_CFLAGS) stage2/glue.o -o $@ $< -Lstage2 -Lrt -lrustrt
495495
@# dsymutil sometimes fails or prints a warning, but the
496496
@# program still runs. Since it simplifies debugging other
497497
@# programs, I\'ll live with the noise.

0 commit comments

Comments
 (0)