Commit cdd36de2 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Build updates

parent 8526ada2
......@@ -22,7 +22,7 @@ $(OUT_DIR)libhash.a: $(OUT_DIR)libhash.a($(LIB_FILES:%=$(OUT_DIR)%.o)) Makefile
$(OUT_DIR)libhash.a(%.o): $(OUT_DIR)%.o
$(OUT_DIR)%.o: src/%.c Makefile
gcc -fPIC -Wall -Werror -c -o $@ $<
gcc -fPIC -Wall -Werror -O3 -c -o $@ $<
$(OUT_DIR)md5sum.o: ./src/libhash.h
$(OUT_DIR)sha512sum.o: ./src/libhash.h
use std::process::Command;
use std::env;
use std::path::Path;
fn main() {
let out_dir = env::var("OUT_DIR").unwrap();
extern crate gcc;
let status = Command::new("make")
let status = Command::new("make")
.arg(&format!("OUT_DIR={}/", out_dir))
if (!status.success()) {
if !status.success() {
println!("cargo:rustc-link-search=native={}", out_dir);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment