Aloha, The -DTHREADSAFE=1 option is added to the OPTS variable, but is not used when compiling the source files. I think the option needs to be added to the TCC variable instead...
- glen diff -Nru3p sqlite-3.2.3.orig/Makefile.in sqlite-3.2.3/Makefile.in --- sqlite-3.2.3.orig/Makefile.in 2005-08-14 17:51:21.000000000 +0000 +++ sqlite-3.2.3/Makefile.in 2005-08-14 17:51:21.000000000 +0000 @@ -52,7 +52,7 @@ LIBREADLINE = @TARGET_READLINE_LIBS@ # Should the database engine be compiled threadsafe # -OPTS += [EMAIL PROTECTED]@ +TCC += [EMAIL PROTECTED]@ # The pthreads library if needed # @@ -423,14 +423,14 @@ tclsqlite3: tclsqlite-shell.lo libsqlite libsqlite3.la $(LIBTCL) testfixture$(TEXE): $(TOP)/src/tclsqlite.c $(TESTSRC) $(COMMONOBJ) - $(LTLINK) -DTCLSH=1 -DSQLITE_TEST=1 $(THREADSAFE) $(TEMP_STORE)\ + $(LTLINK) -DTCLSH=1 -DSQLITE_TEST=1 $(TEMP_STORE) \ -o testfixture \ - $(TESTSRC) $(TOP)/src/tclsqlite.c $(COMMONOBJ) $(LIBTCL) + $(TESTSRC) $(TOP)/src/tclsqlite.c $(COMMONOBJ) $(LIBTCL) $(LIBPTHREAD) crashtest$(TEXE): $(TOP)/src/tclsqlite.c $(TOP)/src/os_test.c $(TESTSRC) $(COMMONOBJ) $(LTLINK) -DOS_TEST=1 -DTCLSH=1 -DSQLITE_TEST=1 \ -o crashtest $(TOP)/src/os_test.c \ - $(TESTSRC) $(TOP)/src/tclsqlite.c $(COMMONOBJ) $(LIBTCL) + $(TESTSRC) $(TOP)/src/tclsqlite.c $(COMMONOBJ) $(LIBTCL) $(LIBPTHREAD)