summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2009-08-10 16:58:53 +0000
committerKalle Sommer Nielsen <kalle@php.net>2009-08-10 16:58:53 +0000
commit4f3d67ea89a8316c4207f0f190d2f97891a9cbaf (patch)
treefef0fa99fb20e68dbbb827a076bf41aa624bd6b4
parent4881a9cff40accbb0c0dc3836f5061d1429d403a (diff)
downloadphp-git-4f3d67ea89a8316c4207f0f190d2f97891a9cbaf.tar.gz
Don't build sqlite as threadsafe if we are doing an NTS build
-rw-r--r--ext/pdo_sqlite/config.w322
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_sqlite/config.w32 b/ext/pdo_sqlite/config.w32
index b0edaf5bb9..04b62dbcec 100644
--- a/ext/pdo_sqlite/config.w32
+++ b/ext/pdo_sqlite/config.w32
@@ -4,7 +4,7 @@
ARG_WITH("pdo-sqlite", "for pdo_sqlite support", "no");
if (PHP_PDO_SQLITE != "no") {
- EXTENSION("pdo_sqlite", "pdo_sqlite.c sqlite_driver.c sqlite_statement.c", null, "/DSQLITE_THREADSAFE=1 /I" + configure_module_dirname + "/../sqlite3/libsqlite /I" + configure_module_dirname);
+ EXTENSION("pdo_sqlite", "pdo_sqlite.c sqlite_driver.c sqlite_statement.c", null, "/DSQLITE_THREADSAFE=" + (PHP_ZTS == "yes" ? "1" : "0") + " /I" + configure_module_dirname + "/../sqlite3/libsqlite /I" + configure_module_dirname);
ADD_EXTENSION_DEP('pdo_sqlite', 'pdo');
// If pdo_sqlite is static, and sqlite3 is also static, then we don't add a second copy of the sqlite3 libs