This commit is contained in:
Yota Toyama
2026-09-25 20:54:55 -07:00
parent 6e18b7b12b
commit df593ee27c
3 changed files with 52 additions and 26 deletions
+2 -7
View File
@@ -52,14 +52,8 @@ cfg_select! {
}
feature = "autotools" => {
fn build_library() -> Result<(), Box<dyn Error>> {
for dir in &[LIB_ATOMIC_OPS_DIR, LIB_GC_DIR] {
std::process::Command::new("sh")
.arg("-c")
.arg(format!("cd {dir} && ./autogen.sh"))
.output()?;
}
let dst = autotools::Config::new(LIB_ATOMIC_OPS_DIR)
.reconf("-i")
.cflag("-fPIC")
.build();
@@ -70,6 +64,7 @@ cfg_select! {
println!("cargo:rustc-link-lib=static=atomic_ops");
let dst = autotools::Config::new(LIB_GC_DIR)
.reconf("-i")
.cflag(format!(
// spell-checker: disable-next-line
"-I{} -L/lib/x86_64-linux-gnu -lpthread -fPIC",