Skip to content

Commit 636a0e3

Browse files
committed
doc: update INSTALLATION.md
with instructions on how to link against a specific shared library.
1 parent d28600e commit 636a0e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

INSTALLATION.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ db.load_extension("/path/to/sqlite/spellfix.o")
167167
db.execute("CREATE VIRTUAL TABLE demo USING spellfix1;")
168168
```
169169

170-
### How do I use an alternative sqlite3 implementation?
170+
### How do I use my own sqlite3 shared library?
171171

172-
Some packages, like pSQLite Encryption Extension ("SEE"), are intended to be ABI-compatible drop-in replacements for the sqlite3 shared object.
172+
Some folks have strong opinions about what features they want compiled into sqlite3; or may be using a package like SQLite Encryption Extension ("SEE"). This section will explain how to get your Ruby application to load that specific shared library.
173173

174174
If you've installed your alternative as an autotools-style installation, the directory structure will look like this:
175175

176176
```
177-
/opt/see
177+
/opt/sqlite3
178178
├── bin
179179
│   └── sqlite3
180180
├── include
@@ -199,7 +199,7 @@ You can build this gem against that library like this:
199199
```
200200
gem install sqlite3 --platform=ruby -- \
201201
--enable-system-libraries \
202-
--with-opt-dir=/opt/see
202+
--with-opt-dir=/opt/sqlite
203203
```
204204

205205
Explanation:

0 commit comments

Comments
 (0)