diff options
Diffstat (limited to 'libsqlite3/libsqlite3/buildfile')
-rw-r--r-- | libsqlite3/libsqlite3/buildfile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/libsqlite3/libsqlite3/buildfile b/libsqlite3/libsqlite3/buildfile index 73a3ba2..0b52040 100644 --- a/libsqlite3/libsqlite3/buildfile +++ b/libsqlite3/libsqlite3/buildfile @@ -19,12 +19,18 @@ clang_msvc = ($c.id == 'clang' && $c.target.system == 'win32-msvc') # Note that we "prefix" them to what might have been specified by the user so # that it is possible to override the defaults by specifying them as =0. # -# PREUPDATE_HOOK is required by SESSION +# PREUPDATE_HOOK is required by SESSION. +# +# GEOPOLY (alternative interface to the R-Tree extension) is always enabled by +# upstream together with RTREE. +# +# ROWID_IN_VIEW restores some legacy behavior. # # Note that if disabling any previously-released features, then will need to # increment abi_major. # c.poptions =+ \ + -DSQLITE_ALLOW_ROWID_IN_VIEW=1 \ -DSQLITE_ENABLE_COLUMN_METADATA=1 \ -DSQLITE_ENABLE_DBPAGE_VTAB=1 \ -DSQLITE_ENABLE_DBSTAT_VTAB=1 \ @@ -34,8 +40,10 @@ c.poptions =+ \ -DSQLITE_ENABLE_FTS3_TOKENIZER=1 \ -DSQLITE_ENABLE_FTS4=1 \ -DSQLITE_ENABLE_FTS5=1 \ + -DSQLITE_ENABLE_GEOPOLY=1 \ -DSQLITE_ENABLE_JSON1=1 \ -DSQLITE_ENABLE_LOAD_EXTENSION=1 \ + -DSQLITE_ENABLE_MATH_FUNCTIONS=1 \ -DSQLITE_ENABLE_PREUPDATE_HOOK=1 \ -DSQLITE_ENABLE_RTREE=1 \ -DSQLITE_ENABLE_SESSION=1 \ @@ -51,6 +59,10 @@ c.poptions =+ \ -DSQLITE_THREADSAFE=1 \ -DSQLITE_USE_URI=1 +# Raise the maximum number of attached databases from 10 up to the limit. +# +c.poptions =+ -DSQLITE_MAX_ATTACHED=125 + if! $windows { # Note that the upstream package normally defines a number of other HAVE_* @@ -72,7 +84,9 @@ if! $windows # We also assume these are implementation dependencies (so there is no # c.export.libs listing them). # - c.libs += -lpthread -lm + # Note that we use -pthread instead of -lpthread for efficiency. + # + c.libs += -pthread -lm if! $bsd c.libs += -ldl |