Fix rpath linker option when using a custom sqlite by jeromew · Pull Request #1654 · TryGhost/node-sqlite3 · GitHub
Skip to content
This repository was archived by the owner on Jul 1, 2026. It is now read-only.

Fix rpath linker option when using a custom sqlite#1654

Merged
daniellockyer merged 1 commit into
TryGhost:masterfrom
jeromew:patch-1
Feb 4, 2023
Merged

Fix rpath linker option when using a custom sqlite#1654
daniellockyer merged 1 commit into
TryGhost:masterfrom
jeromew:patch-1

Conversation

@jeromew

@jeromew jeromew commented Nov 8, 2022

Copy link
Copy Markdown
Contributor

It seems that an old refactoring (~8 years) made a mistake on the way conditions are expressed in gyp. the "conditions" key cannot be set 2 times and the conditions should be all set in the "conditions" array.

The impact of this bug is that when sqlite3 is compiled against a custom sqlite3 source tree, the sqlite3 runtime keeps linking with the system sqlite3 instead of linking to the custom compiled sqlite3 library. In my case that lead to a SIGSEGV upon loading an extension.

It seems that an old refactoring (~8 years) made a mistake on the way conditions are expressed in gyp.
the "conditions" key cannot be set 2 times and the conditions should be all set in the "conditions" array.

The impact of this bug is that when sqlite3 is compiled against a custom sqlite3 source tree, the sqlite3 runtime keeps linking with the system sqlite3 instead of linking to the custom compiled sqlite3 library. In my case that lead to a SIGSEGV upon loading an extension.
@jeromew

jeromew commented Nov 8, 2022

Copy link
Copy Markdown
Contributor Author

@daniellockyer daniellockyer merged commit c1440bd into TryGhost:master Feb 4, 2023
@daniellockyer

Copy link
Copy Markdown
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants