diff options
author | Orivej Desh <orivej@gmx.fr> | 2018-05-29 14:20:43 +0000 |
---|---|---|
committer | Orivej Desh <orivej@gmx.fr> | 2018-05-29 14:49:35 +0000 |
commit | c83a53098599c49ec57823bf655ce8b45f6aea10 (patch) | |
tree | ee48b20af4cabc8646e93cba0e7602faa3e6b23a /pkgs/development/libraries/sqlite/default.nix | |
parent | 2c92213cd2bb38bcf1a74169f5f615f93df8c49c (diff) | |
download | nixpkgs-c83a53098599c49ec57823bf655ce8b45f6aea10.tar nixpkgs-c83a53098599c49ec57823bf655ce8b45f6aea10.tar.gz nixpkgs-c83a53098599c49ec57823bf655ce8b45f6aea10.tar.bz2 nixpkgs-c83a53098599c49ec57823bf655ce8b45f6aea10.tar.lz nixpkgs-c83a53098599c49ec57823bf655ce8b45f6aea10.tar.xz nixpkgs-c83a53098599c49ec57823bf655ce8b45f6aea10.tar.zst nixpkgs-c83a53098599c49ec57823bf655ce8b45f6aea10.zip |
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.
Diffstat (limited to 'pkgs/development/libraries/sqlite/default.nix')
-rw-r--r-- | pkgs/development/libraries/sqlite/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/sqlite/default.nix b/pkgs/development/libraries/sqlite/default.nix index eaeafa74129..03f2f5c7199 100644 --- a/pkgs/development/libraries/sqlite/default.nix +++ b/pkgs/development/libraries/sqlite/default.nix @@ -66,6 +66,11 @@ stdenv.mkDerivation rec { 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 = { description = "A self-contained, serverless, zero-configuration, transactional SQL database engine"; downloadPage = http://sqlite.org/download.html; |