Skip to content

Commit cb2331a

Browse files
committed
Explicitly specify static linkage with whole archive.
1 parent 7ae879f commit cb2331a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fn main() {
107107
"cargo:rustc-flags=-L{} -lv8 -lv8_monolith_{} -ldl -lc",
108108
output_dir, *PROFILE
109109
);
110-
println!("cargo:rustc-link-lib=stdc++");
110+
println!("cargo:rustc-link-lib=static:-bundle,+whole-archive=stdc++");
111111
}
112112
"macos" => {
113113
println!(

0 commit comments

Comments
 (0)