aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2020-12-11 14:01:48 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2020-12-11 14:01:48 +0000
commit54bf58abce424bfe2696ebd1ca48410bec44fa46 (patch)
tree9ab99c7a3cf1b7fbafb9a179c1d3081cff176c39
parent0f384c66448fe3f2e37fb66862a244f6f55d7f36 (diff)
downloadports-54bf58abce424bfe2696ebd1ca48410bec44fa46.tar.gz
ports-54bf58abce424bfe2696ebd1ca48410bec44fa46.zip
Notes
-rw-r--r--databases/sqlite3/files/patch-configure13
1 files changed, 13 insertions, 0 deletions
diff --git a/databases/sqlite3/files/patch-configure b/databases/sqlite3/files/patch-configure
new file mode 100644
index 000000000000..1a1adae0f0dd
--- /dev/null
+++ b/databases/sqlite3/files/patch-configure
@@ -0,0 +1,13 @@
+--- configure.orig 2020-12-11 13:58:21 UTC
++++ configure
+@@ -13335,7 +13335,9 @@ else
+ enable_threadsafe=yes
+ fi
+
+-if test x"$enable_threadsafe" != "xno"; then
++if test x"$enable_threadsafe" == "xno"; then
++ BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_THREADSAFE=0"
++else
+ BUILD_CFLAGS="$BUILD_CFLAGS -D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
+ $as_echo_n "checking for library containing pthread_create... " >&6; }