Skip to content

Conversation

@brunal
Copy link

@brunal brunal commented Dec 18, 2025

The static lib is usually named libduckdb_static.a, not libduckdb.a.

Additionally, I remove the env_prefix & lib_name helpers:

  • the former obfuscates the name of the env vars used
  • the latter is used both for dir names and lib name, and doesn't work for the static lib.

This fixes #651.

env_prefix() would always return the same static string.

Rather than making it a constant, I just remove it. This simplifies the
code a bit: fewer format!(), fewer function calls.
Additionally, grepping for the env vars is now possible.
It was used as library name and as a dir name. It would always return
the same value. There's not much point to it. I could make it a const,
using it in vcpkg/pkg-config-related statements, but I don't think
there's much of a point to it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

libduckdb-sys/build.rs looks for libduckdb.a instead of libduckdb_static.a

1 participant