From ac252b5b07dd347df6d968ccd3fc860460f3fe71 Mon Sep 17 00:00:00 2001 From: Gioele Cantoni <48024736+Gioee@users.noreply.github.com> Date: Mon, 16 Feb 2026 17:59:36 +0100 Subject: [PATCH] fix(windows): static link libgcc to avoid missing dependencies (#42) * fix(Makefile): add static-libgcc flag for Windows builds * Bump version to 0.9.90 --- Makefile | 2 +- src/sqlite-vector.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2b56bec..a9b4c52 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ OBJ_FILES = $(patsubst %.c, $(BUILD_DIR)/%.o, $(notdir $(SRC_FILES))) # Platform-specific settings ifeq ($(PLATFORM),windows) TARGET := $(DIST_DIR)/vector.dll - LDFLAGS += -shared + LDFLAGS += -shared -static-libgcc # Create .def file for Windows DEF_FILE := $(BUILD_DIR)/vector.def STRIP = strip --strip-unneeded $@ diff --git a/src/sqlite-vector.h b/src/sqlite-vector.h index aef74cb..3e5845a 100644 --- a/src/sqlite-vector.h +++ b/src/sqlite-vector.h @@ -24,7 +24,7 @@ extern "C" { #endif -#define SQLITE_VECTOR_VERSION "0.9.85" +#define SQLITE_VECTOR_VERSION "0.9.90" SQLITE_VECTOR_API int sqlite3_vector_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi);