sqlite: do not contaminate dependent libtool-based projects with sqlite 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 commit is contained in:
parent
2c92213cd2
commit
c83a530985
@ -66,6 +66,11 @@ stdenv.mkDerivation rec {
|
|||||||
echo ""
|
echo ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
# Do not contaminate dependent libtool-based projects with sqlite dependencies.
|
||||||
|
sed -i $out/lib/libsqlite3.la -e "s/dependency_libs=.*/dependency_libs='''/"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A self-contained, serverless, zero-configuration, transactional SQL database engine";
|
description = "A self-contained, serverless, zero-configuration, transactional SQL database engine";
|
||||||
downloadPage = http://sqlite.org/download.html;
|
downloadPage = http://sqlite.org/download.html;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user