Skip to content

Commit

Permalink
sqlcipher needs SQLITE_HAS_CODE and SQLITE_TEMP_STORE
Browse files Browse the repository at this point in the history
  • Loading branch information
WA9ACE committed Jun 6, 2018
1 parent 7c7be16 commit 3fd6dda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/sqlite3/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
pkg_conf = "#{brew_prefix}/lib/pkgconfig"
end

# SQLITE_HAS_CODEC

# pkg_config should be less error prone than parsing compiler
# commandline options, but we need to set default ldflags and cpp flags
# in case the user doesn't have pkg-config installed
Expand All @@ -38,6 +40,7 @@
# --with-sqlite3-{dir,include,lib}
if with_config('sqlcipher')
dir_config("sqlcipher", cppflags, ldflags)
$CFLAGS << ' -DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2'
else
dir_config("sqlite3", cppflags, ldflags)
end
Expand Down

0 comments on commit 3fd6dda

Please sign in to comment.