From 7bf483e27d402b5205164747a22c6e37ea1d3c18 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 2 Jun 2026 04:00:51 +0300 Subject: [PATCH] db.sqlite: link libm on linux (#27323) --- vlib/db/sqlite/sqlite.c.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/db/sqlite/sqlite.c.v b/vlib/db/sqlite/sqlite.c.v index 3712da811..0ced3b96f 100644 --- a/vlib/db/sqlite/sqlite.c.v +++ b/vlib/db/sqlite/sqlite.c.v @@ -22,6 +22,9 @@ $if $pkgconfig('sqlite3') { #include "sqlite3.h" # The SQLite header file is missing. Please run vlib/db/sqlite/install_thirdparty_sqlite.vsh to download an SQLite amalgamation. #flag @VEXEROOT/thirdparty/sqlite/sqlite3.c } +$if linux { + #flag -lm +} // https://www.sqlite.org/rescode.html pub const sqlite_ok = 0 -- 2.39.5