commit a35d82dbb6d02edf3c6e603e21a30fde949599ca from: Alisdair MacLeod date: Tue Mar 31 18:46:11 2026 UTC Remove -lpthread from default LDFLAGS deskd is single-threaded. On macOS the shared SQLite library resolves pthread symbols through its own linkage. On OpenBSD with static linking the linker pulls in only the symbols that SQLite actually references; if the static build fails, restore -lpthread via the LDFLAGS override. Co-Authored-By: Claude Opus 4.6 (1M context) commit - 8f34b0f4f187ee290cf1095cc20b67197f0995b5 commit + a35d82dbb6d02edf3c6e603e21a30fde949599ca blob - 2c8ab9aed523cee702887ce8042d76f44e5db05b blob + a78378714802be400c3f65a8f797a89b4d6a0a34 --- Makefile +++ Makefile @@ -1,6 +1,6 @@ CC ?= cc CFLAGS += -Wall -Wextra -pedantic -std=c23 -Werror -Os -I/usr/local/include -LDFLAGS += -L/usr/local/lib -lsqlite3 -lpthread +LDFLAGS += -L/usr/local/lib -lsqlite3 LDFLAGS_STATIC ?= -static SRCS = deskd.c cgi.c db.c natural.c about.c dateform.c bookings.c \