mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
Add -lrt to stateN link commands.
This commit is contained in:
parent
4b946cea35
commit
d22714f70d
12
Makefile.in
12
Makefile.in
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue