From 2bb4bdc945eac5d6316d34911b54856b4923481a Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Thu, 10 Aug 2023 16:17:07 -0400 Subject: [PATCH] Enable FTS5 This requires linking the mathematical library, libm. --- sqlite3.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sqlite3.go b/sqlite3.go index b3711314..b428a2b7 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -16,6 +16,8 @@ package sqlite3 #cgo CFLAGS: -DHAVE_USLEEP=1 #cgo CFLAGS: -DSQLITE_ENABLE_FTS3 #cgo CFLAGS: -DSQLITE_ENABLE_FTS3_PARENTHESIS +#cgo CFLAGS: -DSQLITE_ENABLE_FTS5 +#cgo LDFLAGS: -lm #cgo CFLAGS: -DSQLITE_TRACE_SIZE_LIMIT=15 #cgo CFLAGS: -DSQLITE_OMIT_DEPRECATED #cgo CFLAGS: -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1