From 331152dffd64f842a963f2ec34dea7e8639284c2 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 29 Sep 2022 10:21:13 +1000 Subject: [PATCH] Add MacOS extension recipe --- sqlite3http-ext/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sqlite3http-ext/Makefile b/sqlite3http-ext/Makefile index c859aae..f63ea8c 100644 --- a/sqlite3http-ext/Makefile +++ b/sqlite3http-ext/Makefile @@ -1,10 +1,13 @@ httpvfs.so: sqlite3http_ext.c sqlite3http_ext.a gcc -g -fPIC -shared -o $@ $^ +httpvfs.dylib: sqlite3http_ext.c sqlite3http_ext.a + gcc -framework CoreServices -framework Security -dynamiclib -o $@ $^ + sqlite3http_ext.a: sqlite3http_ext.go go build -tags SQLITE3VFS_LOADABLE_EXT -o $@ -buildmode=c-archive $^ rm -f sqlite3http_ext.h .PHONY: clean clean: - rm -f sqlite3http_ext.a httpvfs.so + rm -f sqlite3http_ext.a httpvfs.so httpvfs.dylib