Function gcc::compile_library [] [src]

pub fn compile_library(output: &str, files: &[&str])

Compile a library from the given set of input C files.

This will simply compile all files into object files and then assemble them into the output. This will read the standard environment variables to detect cross compilations and such.

This function will also print all metadata on standard output for Cargo.

Example

gcc::compile_library("libfoo.a", &["foo.c", "bar.c"]);