Add -lrt to stateN link commands.

This commit is contained in:
Graydon Hoare 2011-03-20 21:05:31 -07:00
parent 4b946cea35
commit d22714f70d

View file

@ -474,24 +474,24 @@ llvmext/%.o: llvmext/%.cpp $(MKFILES)
######################################################################
%.stage0$(X): %.stage0.o rt/$(CFG_RUNTIME) stage0/glue.o
@$(call E, link [llvm]: $@)
$(Q)gcc $(CFG_GCC_CFLAGS) stage0/glue.o -o $@ $< -Lstage0 -lrustrt
@$(call E, link [gcc]: $@)
$(Q)gcc $(CFG_GCC_CFLAGS) stage0/glue.o -o $@ $< -Lstage0 -Lrt -lrustrt
@# dsymutil sometimes fails or prints a warning, but the
@# program still runs. Since it simplifies debugging other
@# programs, I\'ll live with the noise.
-$(Q)$(DSYMUTIL) $@
%.stage1(X): %.stage1.o rt/$(CFG_RUNTIME) stage1/glue.o
@$(call E, link [llvm]: $@)
$(Q)gcc $(CFG_GCC_CFLAGS) stage1/glue.o -o $@ $< -Lstage1 -lrustrt
@$(call E, link [gcc]: $@)
$(Q)gcc $(CFG_GCC_CFLAGS) stage1/glue.o -o $@ $< -Lstage1 -Lrt -lrustrt
@# dsymutil sometimes fails or prints a warning, but the
@# program still runs. Since it simplifies debugging other
@# programs, I\'ll live with the noise.
-$(Q)$(DSYMUTIL) $@
%.stage2(X): %.stage2.o rt/$(CFG_RUNTIME) stage2/glue.o
@$(call E, link [llvm]: $@)
$(Q)gcc $(CFG_GCC_CFLAGS) stage2/glue.o -o $@ $< -Lstage2 -lrustrt
@$(call E, link [gcc]: $@)
$(Q)gcc $(CFG_GCC_CFLAGS) stage2/glue.o -o $@ $< -Lstage2 -Lrt -lrustrt
@# dsymutil sometimes fails or prints a warning, but the
@# program still runs. Since it simplifies debugging other
@# programs, I\'ll live with the noise.