Encapsulate the internal SQLite (#684)
Encapsulate the internal SQLite (#684)

Add linker flags to
 - prevent the dynamic linker from using an external SQLite for this
   library (`-Bsymbolic`) and
 - prevent the dynamic linker from using the internal SQLite for other
   libraries (`--exclude-libs ALL`).

This is just a (conflict-free) cherry-pick of a Signal-specific fix in
https://github.com/signalapp/better-sqlite3/pull/3 that seems OK to
upstream further.
JoshuaWise/better-sqlite3,JoshuaWise/better-sqlite3,JoshuaWise/better-sqlite3