@@ -474,24 +474,24 @@ llvmext/%.o: llvmext/%.cpp $(MKFILES)
474
474
# #####################################################################
475
475
476
476
% .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
479
479
@# dsymutil sometimes fails or prints a warning, but the
480
480
@# program still runs. Since it simplifies debugging other
481
481
@# programs, I\'ll live with the noise.
482
482
-$(Q )$(DSYMUTIL ) $@
483
483
484
484
% .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
487
487
@# dsymutil sometimes fails or prints a warning, but the
488
488
@# program still runs. Since it simplifies debugging other
489
489
@# programs, I\'ll live with the noise.
490
490
-$(Q )$(DSYMUTIL ) $@
491
491
492
492
% .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
495
495
@# dsymutil sometimes fails or prints a warning, but the
496
496
@# program still runs. Since it simplifies debugging other
497
497
@# programs, I\'ll live with the noise.
0 commit comments