From 9d9ed4bbb4160a7deb08537cc0987640ded98ce1 Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Sat, 9 Mar 2019 10:40:33 +0100 Subject: [PATCH] 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 f4ffec281a2888c1e536662ac1ea740fd3f5433c. --- ext/sqlite3/extconf.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ext/sqlite3/extconf.rb b/ext/sqlite3/extconf.rb index 3d46c1c9..6318dbcc 100644 --- a/ext/sqlite3/extconf.rb +++ b/ext/sqlite3/extconf.rb @@ -64,11 +64,7 @@ def asplode missing asplode('sqlite3.h') unless find_header 'sqlite3.h' find_library 'pthread', 'pthread_create' # 1.8 support. *shrug* -have_library 'dl' - -%w{ dlopen dlclose dlsym }.each do |func| - abort "missing function #{func}" unless have_func(func) -end +have_library 'dl' # for static builds if with_config('sqlcipher') asplode('sqlcipher') unless find_library 'sqlcipher', 'sqlite3_libversion_number'