In my build.rs file, I placed the following:
extern crate gcc;
fn main() {
gcc::Config::new().file("src/test.c").compile("libtest.a");
}
and it works well. But now I want to add a couple flags, such as linking to my own library "-lmylib" and maybe "-fPIC". I can't seem to figure out how to do that. Any help would be deeply appreciated!