-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow turning off loadable extensions
- Loading branch information
Showing
6 changed files
with
124 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
OASISFormat: 0.4 | ||
Name: sqlite3 | ||
Version: 4.0.2 | ||
Version: 4.0.3 | ||
Synopsis: sqlite3-ocaml - SQLite3 bindings | ||
Description: sqlite3-ocaml is an OCaml library with bindings to the | ||
SQLite3 client API. Sqlite3 is a self-contained, serverless, | ||
|
@@ -12,7 +12,7 @@ Description: sqlite3-ocaml is an OCaml library with bindings to the | |
Authors: Markus Mottl <[email protected]>, | ||
Christian Szegedy <[email protected]> | ||
Copyrights: (C) 2007-2010 Jane Street Holding LLC <[email protected]>, | ||
(C) 2010-2015 Markus Mottl <[email protected]>, | ||
(C) 2010-2016 Markus Mottl <[email protected]>, | ||
(C) 2005-2012 Christian Szegedy <[email protected]> | ||
Maintainers: Markus Mottl <[email protected]>, | ||
Christian Szegedy <[email protected]> | ||
|
@@ -37,14 +37,20 @@ Flag brewcheck | |
Description: Try to check against a homebrewed sqlite3 | ||
Default: false | ||
|
||
Flag loadable_extensions | ||
Description: Enable loadable extensions | ||
Default: true | ||
|
||
Library sqlite3 | ||
Path: lib | ||
FindlibName: sqlite3 | ||
Modules: Sqlite3 | ||
CSources: sqlite3_stubs.c | ||
CCOpt: -g -O2 -fPIC -DPIC | ||
if flag(strict) && ccomp_type(cc) | ||
CCOpt+: -Wall -pedantic -Wextra -Wunused -Wno-long-long | ||
CCOpt+: -Wall -pedantic -Wextra -Wunused -Wno-long-long -Wno-keyword-macro | ||
if !flag(loadable_extensions) | ||
CCOpt+: -DSQLITE3_DISABLE_LOADABLE_EXTENSIONS | ||
CCLib: -lsqlite3 -lpthread | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
(* setup.ml generated for the first time by OASIS v0.3.0 *) | ||
|
||
(* OASIS_START *) | ||
(* DO NOT EDIT (digest: 4f2751487ce181081e99de1028e4c41a) *) | ||
(* DO NOT EDIT (digest: 34b827fa7f40294929d50e745345a17a) *) | ||
(* | ||
Regenerated by OASIS v0.4.5 | ||
Visit http://oasis.forge.ocamlcore.org for more information and | ||
|
@@ -6981,7 +6981,7 @@ let setup_t = | |
alpha_features = []; | ||
beta_features = []; | ||
name = "sqlite3"; | ||
version = "4.0.2"; | ||
version = "4.0.3"; | ||
license = | ||
OASISLicense.DEP5License | ||
(OASISLicense.DEP5Unit | ||
|
@@ -6994,7 +6994,7 @@ let setup_t = | |
copyrights = | ||
[ | ||
"(C) 2007-2010 Jane Street Holding LLC <[email protected]>"; | ||
"(C) 2010-2015 Markus Mottl <[email protected]>"; | ||
"(C) 2010-2016 Markus Mottl <[email protected]>"; | ||
"(C) 2005-2012 Christian Szegedy <[email protected]>" | ||
]; | ||
maintainers = | ||
|
@@ -7073,6 +7073,16 @@ let setup_t = | |
Some "Try to check against a homebrewed sqlite3"; | ||
flag_default = [(OASISExpr.EBool true, false)] | ||
}); | ||
Flag | ||
({ | ||
cs_name = "loadable_extensions"; | ||
cs_data = PropList.Data.create (); | ||
cs_plugin_data = [] | ||
}, | ||
{ | ||
flag_description = Some "Enable loadable extensions"; | ||
flag_default = [(OASISExpr.EBool true, true)] | ||
}); | ||
Library | ||
({ | ||
cs_name = "sqlite3"; | ||
|
@@ -7093,6 +7103,15 @@ let setup_t = | |
[ | ||
(OASISExpr.EBool true, | ||
["-g"; "-O2"; "-fPIC"; "-DPIC"]); | ||
(OASISExpr.ENot | ||
(OASISExpr.EFlag "loadable_extensions"), | ||
[ | ||
"-g"; | ||
"-O2"; | ||
"-fPIC"; | ||
"-DPIC"; | ||
"-DSQLITE3_DISABLE_LOADABLE_EXTENSIONS" | ||
]); | ||
(OASISExpr.EAnd | ||
(OASISExpr.EFlag "strict", | ||
OASISExpr.ETest ("ccomp_type", "cc")), | ||
|
@@ -7105,7 +7124,27 @@ let setup_t = | |
"-pedantic"; | ||
"-Wextra"; | ||
"-Wunused"; | ||
"-Wno-long-long" | ||
"-Wno-long-long"; | ||
"-Wno-keyword-macro" | ||
]); | ||
(OASISExpr.EAnd | ||
(OASISExpr.EAnd | ||
(OASISExpr.EFlag "strict", | ||
OASISExpr.ETest ("ccomp_type", "cc")), | ||
OASISExpr.ENot | ||
(OASISExpr.EFlag "loadable_extensions")), | ||
[ | ||
"-g"; | ||
"-O2"; | ||
"-fPIC"; | ||
"-DPIC"; | ||
"-Wall"; | ||
"-pedantic"; | ||
"-Wextra"; | ||
"-Wunused"; | ||
"-Wno-long-long"; | ||
"-Wno-keyword-macro"; | ||
"-DSQLITE3_DISABLE_LOADABLE_EXTENSIONS" | ||
]) | ||
]; | ||
bs_cclib = | ||
|
@@ -7523,14 +7562,14 @@ let setup_t = | |
}; | ||
oasis_fn = Some "_oasis"; | ||
oasis_version = "0.4.5"; | ||
oasis_digest = Some "\tÿ¾%³~;¹×\t=ïÿ\\¶"; | ||
oasis_digest = Some "\026Á2=èì-\007\130B\026ù\151Ù "; | ||
oasis_exec = None; | ||
oasis_setup_args = []; | ||
setup_update = false | ||
};; | ||
|
||
let setup () = BaseSetup.setup setup_t;; | ||
|
||
# 7535 "setup.ml" | ||
# 7574 "setup.ml" | ||
(* OASIS_STOP *) | ||
let () = setup ();; |