Skip to content

Commit

Permalink
Merge pull request #53 from kirillrdy/master
Browse files Browse the repository at this point in the history
On FreeBSD use gmake
  • Loading branch information
alexcrichton committed Jun 18, 2017
2 parents be71896 + 06720c9 commit 06e7cf7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion backtrace-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ fn main() {
return
}

let mut make = "make";

//FreeBSD make is BSD make
if target.contains("freebsd") {
make = "gmake"
}


let cfg = gcc::Config::new();
let compiler = cfg.get_compiler();
let cc = compiler.path().file_name().unwrap().to_str().unwrap();
Expand All @@ -84,7 +92,7 @@ fn main() {
.arg(format!("--host={}", target))
.arg(format!("--build={}", host)),
"sh");
run(Command::new("make")
run(Command::new(make)
.current_dir(&dst)
.arg(format!("INCDIR={}",
src.join("src/libbacktrace").display())),
Expand Down

0 comments on commit 06e7cf7

Please sign in to comment.