forked from GitHub/bdwgc-rust
Fix
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user