3036b00127
If a dylib is being produced, the compiler will now first check to see if it can be created entirely statically before falling back to dynamic dependencies. This behavior can be overridden with `-C prefer-dynamic`. Due to the alteration in behavior, this is a breaking change. Any previous users relying on dylibs implicitly maximizing dynamic dependencies should start passing `-C prefer-dynamic` to compilations. Closes #18499 [breaking-change]
10 lines
170 B
Makefile
10 lines
170 B
Makefile
-include ../tools.mk
|
|
|
|
all:
|
|
$(RUSTC) foo.rs
|
|
$(RUSTC) bar.rs
|
|
$(CC) main.c -o $(call RUN_BINFILE,main) -lbar
|
|
rm $(TMPDIR)/*.rlib
|
|
rm $(call DYLIB,foo)
|
|
$(call RUN,main)
|