summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/tests
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp-ffi/tests')
-rw-r--r--openpgp-ffi/tests/c-tests.rs3
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