Commit Diff
- Commit:
a35d82dbb6d02edf3c6e603e21a30fde949599ca- From:
- Alisdair MacLeod <git@alisdairmacleod.co.uk>
- Date:
- Message:
- 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) <noreply@anthropic.com>
- Actions:
- Patch | Tree
--- 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 \
