From 55674f85fe48b7d869a934cccf85e8707f3a1ef0 Mon Sep 17 00:00:00 2001 From: Richard Wheeler <18647491+PythonWillRule@users.noreply.github.com> Date: Sat, 4 Apr 2026 00:06:24 -0400 Subject: [PATCH] sqlite: use bundled amalgamation on Linux/macOS when pkg-config is unavailable When `pkg-config sqlite3` fails, fall back to compiling the bundled `thirdparty/sqlite/sqlite3.c` directly instead of `-lsqlite3`, which requires a system development package. Users can obtain the amalgamation by running `vlib/db/sqlite/install_thirdparty_sqlite.vsh`. Co-Authored-By: Claude Sonnet 4.6 --- vlib/db/sqlite/sqlite.c.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/db/sqlite/sqlite.c.v b/vlib/db/sqlite/sqlite.c.v index 5d792c577a559c..c19247ae803aaa 100644 --- a/vlib/db/sqlite/sqlite.c.v +++ b/vlib/db/sqlite/sqlite.c.v @@ -11,7 +11,7 @@ $if $pkgconfig('sqlite3') { #flag windows -L@VEXEROOT/thirdparty/sqlite #flag windows @VEXEROOT/thirdparty/sqlite/sqlite3.o } $else { - #flag -lsqlite3 + #flag @VEXEROOT/thirdparty/sqlite/sqlite3.c } #include "sqlite3.h" # The SQLite header file is missing. Please run vlib/db/sqlite/install_thirdparty_sqlite.vsh to download an SQLite amalgamation, or install its development package.