diff --git a/tests/Makefile b/tests/Makefile index d061c4da77..46e38becfc 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -43,7 +43,8 @@ run-once: $(BUILD)/bins_verify/relibc-tests $(BUILD)/$(TESTBIN) support_build $(BUILD)/bins_verify/relibc-tests: src/main.rs mkdir -p $(BUILD)/bins_verify - $(CARGO_TEST) build --release --bin relibc-tests --artifact-dir $(BUILD)/bins_verify --target-dir $(BUILD)/target -Z unstable-options + RUSTFLAGS="-C target-feature=-crt-static" $(CARGO_TEST) build --release --bin relibc-tests \ + --artifact-dir $(BUILD)/bins_verify --target-dir $(BUILD)/target -Z unstable-options rm -rf $(BUILD)/target $(BUILD)/Makefile: Makefile.run.mk