Skip to content

Commit 9d9ed4b

Browse files
committed
Don't mandate dl functions for the extention build
Sqlite3-ruby doesn't use dl functions, nor does extconf compile sqlite3 sources, which possibly makes use of them. So mandating dl functions in extconf is wrong and breaks the build on Windows. Fixes #250 . This pertly reverts commit f4ffec2.
1 parent 5c36dbe commit 9d9ed4b

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

ext/sqlite3/extconf.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,7 @@ 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
67+
have_library 'dl' # for static builds
7268

7369
if with_config('sqlcipher')
7470
asplode('sqlcipher') unless find_library 'sqlcipher', 'sqlite3_libversion_number'

0 commit comments

Comments
 (0)