From c00471197a029aded51bbc4afcdfc6197458ab77 Mon Sep 17 00:00:00 2001 From: Sergey Duck Date: Sat, 27 Jun 2020 14:37:26 +0300 Subject: [PATCH] Add cross-compilation with mingw --- libsqlite3-sys/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/libsqlite3-sys/build.rs b/libsqlite3-sys/build.rs index c4cd5aa..aad37b1 100644 --- a/libsqlite3-sys/build.rs +++ b/libsqlite3-sys/build.rs @@ -79,6 +79,7 @@ mod build_bundled { .flag("-DSQLITE_THREADSAFE=1") .flag("-DSQLITE_USE_URI") .flag("-DHAVE_USLEEP=1") + .flag("-D_POSIX_THREAD_SAFE_FUNCTIONS") // cross compile with MinGW .warnings(false); if cfg!(feature = "with-asan") {