Skip to content

Commit f4ffec2

Browse files
committed
SQLite3 uses dl, so we need to ensure it's linked
1 parent f9b5a46 commit f4ffec2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ext/sqlite3/extconf.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ def asplode missing
6464
asplode('sqlite3.h') unless find_header 'sqlite3.h'
6565
find_library 'pthread', 'pthread_create' # 1.8 support. *shrug*
6666

67+
have_library 'dl'
68+
69+
%w{ dlopen dlclose dlsym }.each do |func|
70+
abort "missing function #{func}" unless have_func(func)
71+
end
72+
6773
if with_config('sqlcipher')
6874
asplode('sqlcipher') unless find_library 'sqlcipher', 'sqlite3_libversion_number'
6975
else

0 commit comments

Comments
 (0)