Skip to content

Commit 0ff83e7

Browse files
committed
fix linux sqlite3 build options
1 parent 2187dab commit 0ff83e7

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,14 @@ In general, nobody cares about this. The bundles do the right thing.
284284
But the options are there for people who need fine-grained control
285285
over such things.
286286

287+
# e\_sqlite3 builds for Linux and Mac
288+
289+
SQLitePCLRaw.lib.e\_sqlite3 packages are provided for
290+
Linux and Mac. Both bundle\_green and bundle\_e\_sqlite3
291+
have a dependency on these for net35/net40/net45, so
292+
that these bundles will "do the right thing" when used
293+
with Mono on Linux and Mac.
294+
287295
# NetStandard
288296

289297
Release 1.0 supports netstandard. However, it also still
@@ -303,6 +311,8 @@ These environments do not support pinvoke, so it's a
303311
special case. The e\_sqlite3 provider is the only one
304312
available.
305313

314+
Note that bundle\_green and bundle\_e\_sqlite3 both support Windows Phone Silverlight.
315+
306316
# CONTENT BELOW THIS LINE IS NOT FULLY UPDATED FOR 1.0
307317

308318
## How do I build this?

linux/build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/bin/sh
2-
# TODO use same options as other platforms
3-
gcc -shared -fPIC -O -o libe_sqlite3.so ../sqlite3/sqlite3.c -lc
2+
gcc -shared -fPIC -O -DNDEBUG -DSQLITE_DEFAULT_FOREIGN_KEYS=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_RTREE -o libe_sqlite3.so ../sqlite3/sqlite3.c
43

linux/libe_sqlite3.so

172 KB
Binary file not shown.

0 commit comments

Comments
 (0)