Skip to content

Commit a3bf2f9

Browse files
committed
Link against Homebrew SQLite to work around linker errors
1 parent 7c09f2e commit a3bf2f9

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@ jobs:
1717
with:
1818
python-version: '3.12'
1919

20-
- name: Install system dependencies
20+
- name: Install system dependencies (Linux)
2121
if: runner.os == 'Linux'
2222
run: sudo apt-get install -y gcc libssl-dev libsqlite3-dev uuid-dev
2323

24+
- name: Install system dependencies (macOS)
25+
if: runner.os == 'macOS'
26+
run: brew install sqlite
27+
2428
- name: Build
2529
run: make DEBUG=1
2630

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ SOURCES := $(wildcard src/*.c)
1111
ifeq ($(PLATFORM),Darwin)
1212
SO_EXT = dylib
1313
USE_COMMONCRYPTO = implicit
14-
LDFLAGS += -undefined dynamic_lookup
1514
LIB := $(DIST_DIR)/$(NAME).$(VERSION).$(SO_EXT)
15+
SQLITE_PREFIX ?= $(shell brew --prefix sqlite)
16+
CFLAGS += -I$(SQLITE_PREFIX)/include
17+
LDFLAGS += -L$(SQLITE_PREFIX)/lib -lsqlite3
1618
else
1719
SO_EXT = so
1820
USE_OPENSSL = implicit

0 commit comments

Comments
 (0)