Skip to content

Commit

Permalink
chore(build): Strip quotes from tiledb prefix (#207)
Browse files Browse the repository at this point in the history
For some reason, the `pkg-config` that comes in the manylinux containers
does not strip quotes. This avoids using the built-in variables and
instead just grabs the prefix, strips quotes, and manually appends `lib`
for now. Theoretically that could bite me later if something moves to
`lib64` but I'll deal with that if and when it happens.
  • Loading branch information
davisp authored Feb 26, 2025
1 parent 4bfb95d commit f6a4b4c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tiledb/sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,13 @@ fn main() {
.probe("tiledb")
.expect("TileDB >= 2.27 not found.");

let libdir = pkg_config::get_variable("tiledb", "libdir")
let prefix = pkg_config::get_variable("tiledb", "prefix")
.expect("Missing TileDB 'libdir' variable.");
let prefix = prefix.trim_matches('"');
let libdir = std::path::Path::new(prefix)
.join("lib")
.display()
.to_string();

// If we find a libtiledb_static.a, link statically, otherwise assume
// we want to link dynamically.
Expand Down

0 comments on commit f6a4b4c

Please sign in to comment.