mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 07:41:50 -04:00
databases/sqlite3: fix build w/o THREADS
PR: 244459 Reported by: Brian Haug <haug.bsd6114@yahoo.com>
This commit is contained in:
parent
0f384c6644
commit
54bf58abce
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=557735
1 changed files with 13 additions and 0 deletions
13
databases/sqlite3/files/patch-configure
Normal file
13
databases/sqlite3/files/patch-configure
Normal file
|
@ -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; }
|
Loading…
Add table
Reference in a new issue