From 208d475cdf015cd15e399397fb0647b21e310500 Mon Sep 17 00:00:00 2001 From: Christopher Schwan Date: Mon, 7 Oct 2024 11:44:56 +0200 Subject: [PATCH] Add missing linker paths to the APPLgrid interface --- pineappl_applgrid/build.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pineappl_applgrid/build.rs b/pineappl_applgrid/build.rs index 7719d3e7..699122a2 100644 --- a/pineappl_applgrid/build.rs +++ b/pineappl_applgrid/build.rs @@ -115,6 +115,14 @@ fn main() { "" }; + // `--ldflags` contains linker paths not contained in `--libdir` + for lib_path in libs + .split_whitespace() + .filter_map(|token| token.strip_prefix("-L")) + { + println!("cargo:rustc-link-search={lib_path}"); + } + for lib in libs .split_whitespace() .filter_map(|token| token.strip_prefix("-l"))