]> granicus.if.org Git - php/commitdiff
Don't build sqlite as threadsafe if we are doing an NTS build
authorKalle Sommer Nielsen <kalle@php.net>
Mon, 10 Aug 2009 16:58:53 +0000 (16:58 +0000)
committerKalle Sommer Nielsen <kalle@php.net>
Mon, 10 Aug 2009 16:58:53 +0000 (16:58 +0000)
ext/pdo_sqlite/config.w32

index b0edaf5bb9ffb3de78d102912f8898ee3df00ff8..04b62dbcecee41c68adfa4247c3fec281fd335e0 100644 (file)
@@ -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