Use -fPIC for c driver compilation

pull/5/head
Thijs Cadier 9 years ago
parent 885c26f133
commit 83bf75b63d

@ -52,6 +52,7 @@ fn main() {
command.arg("--enable-shared=no"); command.arg("--enable-shared=no");
command.arg("--with-libbson=bundled"); command.arg("--with-libbson=bundled");
command.arg(format!("--prefix={}", &out_dir)); command.arg(format!("--prefix={}", &out_dir));
command.env("CFLAGS", "-fPIC");
command.env("BSON_CFLAGS", "-fPIC"); command.env("BSON_CFLAGS", "-fPIC");
command.current_dir(&driver_path); command.current_dir(&driver_path);

Loading…
Cancel
Save