diff --git a/.travis.yml b/.travis.yml index 661ebda1..bb97aaaa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,12 @@ addons: packages: - libgmp-dev +after_failure: + - "find . -name mkmf.log -exec cat {} \\;" + +after_success: + - "find . -name mkmf.log -exec cat {} \\;" + env: - USE_MINI_PORTILE=true - USE_MINI_PORTILE=false diff --git a/ext/sqlite3/extconf.rb b/ext/sqlite3/extconf.rb index bdd56995..3d46c1c9 100644 --- a/ext/sqlite3/extconf.rb +++ b/ext/sqlite3/extconf.rb @@ -64,6 +64,12 @@ 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 + if with_config('sqlcipher') asplode('sqlcipher') unless find_library 'sqlcipher', 'sqlite3_libversion_number' else