sqlite: fix Libs.private

This commit is contained in:
Alyssa Ross 2025-02-11 16:47:38 +01:00
parent 7703504a25
commit a0b46893d8
No known key found for this signature in database
GPG key ID: 5B459184230FF0A2
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,11 @@
diff --git a/sqlite3.pc.in b/sqlite3.pc.in
index a9f941b..3799671 100644
--- a/sqlite3.pc.in
+++ b/sqlite3.pc.in
@@ -9,5 +9,5 @@ Name: SQLite
Description: SQL database engine
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lsqlite3
-Libs.private: @LDFLAGS_MATH@ @LDFLAGS_ZLIB@ @LDFLAGS_ICU@
+Libs.private: @LIBS@
Cflags: -I${includedir}

View file

@ -29,6 +29,13 @@ stdenv.mkDerivation rec {
hash = "sha256-PcE3/NfGrLMmr2CmG5hE3RXTdzywXnqc4nbEH3E9dlo=";
};
patches = [
# https://sqlite.org/forum/forumpost/3380558ea82c8a3e
# Can be removed with the next release.
# Test: pkgsStatic.gnupg
./Libs.private.patch
];
outputs = [ "bin" "dev" "man" "doc" "out" ];
separateDebugInfo = stdenv.hostPlatform.isLinux;