Module Name:    src
Committed By:   joerg
Date:           Fri Feb  5 21:48:52 UTC 2021

Modified Files:
        src/external/public-domain/sqlite: Makefile.inc

Log Message:
Reenable threadsafe sqlite.

Do it properly and only enable thread-safety, but not the worker thread
support. The latter is what requires the whole libpthread dependency.
A potential compromis would be to use a weak pthread_create and only
enable worker threads if it is provided, but given that it is only
really used for large sorts, don't bother for now.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/public-domain/sqlite/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/public-domain/sqlite/Makefile.inc
diff -u src/external/public-domain/sqlite/Makefile.inc:1.10 src/external/public-domain/sqlite/Makefile.inc:1.11
--- src/external/public-domain/sqlite/Makefile.inc:1.10	Thu Nov 12 17:53:43 2020
+++ src/external/public-domain/sqlite/Makefile.inc	Fri Feb  5 21:48:52 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.10 2020/11/12 17:53:43 nia Exp $
+# $NetBSD: Makefile.inc,v 1.11 2021/02/05 21:48:52 joerg Exp $
 
 WARNS=		2
 
@@ -15,6 +15,7 @@ CPPFLAGS+=	\
 		-DHAVE_STRERROR_R=1 \
 		-DHAVE_USLEEP=1 \
 		-DHAVE_SYS_ENDIAN_H=1 \
+		-DSQLITE_THREADSAFE \
 		-DSQLITE_MAX_WORKER_THREADS=0 \
 		-DSQLITE_ENABLE_COLUMN_METADATA \
 		-DSQLITE_ENABLE_FTS3_PARENTHESIS \

Reply via email to