diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-03-12 17:04:02 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-03-13 14:31:36 +0100 |
commit | 61a3b55d115f770ed2cc493f052efa68e15a87ae (patch) | |
tree | 449676a356d7e413b514c5a359ea34104b493344 /openpgp-ffi/tests | |
parent | cc1250dc96c6459f4510357430405032d6dbf9a9 (diff) |
ffi, openpgp-ffi: Properly use LDLIBS to link against Sequoia.
- Fixes linking tests and examples with ld --as-needed.
Diffstat (limited to 'openpgp-ffi/tests')
-rw-r--r-- | openpgp-ffi/tests/c-tests.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp-ffi/tests/c-tests.rs b/openpgp-ffi/tests/c-tests.rs index 8dc38227..e58fff52 100644 --- a/openpgp-ffi/tests/c-tests.rs +++ b/openpgp-ffi/tests/c-tests.rs @@ -227,7 +227,8 @@ fn build(include_dirs: &[PathBuf], ldpath: &Path, target_dir: &Path, let st = Command::new("make") .env("CFLAGS", &format!("-Wall -O0 -ggdb {} {}", includes, env::var("CFLAGS").unwrap_or("".into()))) - .env("LDFLAGS", &format!("-L{:?} -lsequoia_openpgp_ffi", ldpath)) + .env("LDFLAGS", &format!("-L{:?}", ldpath)) + .env("LDLIBS", "-lsequoia_openpgp_ffi") .arg("-C").arg(&target_dir) .arg("--quiet") // XXX: We don't track the header files as dependencies for |