Merge pull request #61 from appsignal/static

Move back to static linking
mongoc_1_17_5
Thijs Cadier 4 years ago committed by GitHub
commit a38d9bc26e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,7 +37,7 @@ blocks:
- docker-compose $COMPOSE_OPTIONS up -d --no-recreate - docker-compose $COMPOSE_OPTIONS up -d --no-recreate
# Install dependencies # Install dependencies
- docker-compose $COMPOSE_OPTIONS exec $CONTAINER_NAME apt-get update - docker-compose $COMPOSE_OPTIONS exec $CONTAINER_NAME apt-get update
- docker-compose $COMPOSE_OPTIONS exec $CONTAINER_NAME apt-get install -y cmake libssl-dev - docker-compose $COMPOSE_OPTIONS exec $CONTAINER_NAME apt-get install -y cmake libssl-dev libsasl2-dev libicu-dev
jobs: jobs:
- name: Test - name: Test
commands: commands:

@ -58,11 +58,15 @@ fn main() {
cmake.arg("-DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF"); cmake.arg("-DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF");
cmake.arg("-DENABLE_SSL=OPENSSL"); cmake.arg("-DENABLE_SSL=OPENSSL");
cmake.arg("-DENABLE_SASL=OFF"); cmake.arg("-DENABLE_SASL=OFF");
cmake.arg("-DENABLE_STATIC=OFF"); cmake.arg("-DENABLE_STATIC=ON");
cmake.arg("-DENABLE_BSON=ON");
cmake.arg("-DENABLE_ENABLE_EXAMPLES=OFF");
cmake.arg("-DENABLE_TESTS=OFF"); cmake.arg("-DENABLE_TESTS=OFF");
cmake.arg("-DENABLE_SHM_COUNTERS=OFF");
cmake.arg("-DWITH_PIC=ON"); cmake.arg("-DWITH_PIC=ON");
cmake.arg("-DWITH_SNAPPY=OFF"); cmake.arg("-DWITH_SNAPPY=OFF");
cmake.arg("-DWITH_ZLIB=ON"); cmake.arg("-DWITH_ZLIB=ON");
cmake.arg("-DENABLE_EXTRA_ALIGNMENT=OFF");
// Run in current dir // Run in current dir
cmake.arg("."); cmake.arg(".");
@ -82,7 +86,9 @@ fn main() {
// Output to Cargo // Output to Cargo
println!("cargo:rustc-link-search=native={}/usr/local/lib", &out_dir.to_string_lossy()); println!("cargo:rustc-link-search=native={}/usr/local/lib", &out_dir.to_string_lossy());
println!("cargo:rustc-link-lib=bson-1.0"); println!("cargo:rustc-link-lib=static=bson-static-1.0");
println!("cargo:rustc-link-lib=mongoc-1.0"); println!("cargo:rustc-link-lib=static=mongoc-static-1.0");
println!("cargo:rustc-link-lib=resolv");
#[cfg(target_os = "linux")] println!("cargo:rustc-link-lib=icuuc");
} }
} }

Loading…
Cancel
Save