New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqlite: do not contaminate dependent libtool-based projects with sqlite dependencies #41211
Conversation
…te dependencies sqlite is built as a shared library, but libtool nevertheless adds -lz into the link commands of the dependent projects, which fail to link if they do not directly depend on libz. Fix this by clearing dependency_libs in libsqlite3.la.
This reverts commit e89414f.
Success on x86_64-linux (full log) Attempted: sqlite Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: sqlite Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: sqlite Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: sqlite Partial log (click to expand)
|
Can this wait until we have a "more" stable master and staging again? |
OK, merged to staging. |
Success on aarch64-linux (full log) Attempted: sqlite Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: sqlite Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: sqlite Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: sqlite Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: sqlite Partial log (click to expand)
|
Motivation for this change
sqlite is built as a shared library, but libtool nevertheless adds
-lz
into thelink commands of the dependent projects, which fail to link if they do not
directly depend on libz. Fix this by clearing dependency_libs in libsqlite3.la.
sqlite was made dependent on libz in #40626 and reached
master
in b22cc53. It seems better to merge this PR into master to stabilize it and prevent such workarounds as e89414f.Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)