Skip to content

Commit

Permalink
Add missing linker paths to the APPLgrid interface
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwan committed Oct 7, 2024
1 parent 286e333 commit f87183e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pineappl_applgrid/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit f87183e

Please sign in to comment.