Skip to content

Commit

Permalink
Encapsulate the internal SQLite
Browse files Browse the repository at this point in the history
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 fixes both signalapp/Signal-Desktop#4513
and signalapp/Signal-Desktop#5471 for us.
  • Loading branch information
heftig committed Aug 22, 2021
1 parent 2fa02d2 commit 32d3ee7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': ['-std=c++14', '-stdlib=libc++'],
},
'conditions': [
['OS=="linux"', {
'ldflags': [
'-Wl,-Bsymbolic',
'-Wl,--exclude-libs,ALL',
],
}],
],
},
{
'target_name': 'test_extension',
Expand Down

0 comments on commit 32d3ee7

Please sign in to comment.