Skip to content

Commit b6862d8

Browse files
authored
Merge pull request #236 from sparklemotion/test-build
Try catting the mkmf.log file if there is a failure
2 parents fd285ba + f4ffec2 commit b6862d8

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ addons:
99
packages:
1010
- libgmp-dev
1111

12+
after_failure:
13+
- "find . -name mkmf.log -exec cat {} \\;"
14+
15+
after_success:
16+
- "find . -name mkmf.log -exec cat {} \\;"
17+
1218
env:
1319
- USE_MINI_PORTILE=true
1420
- USE_MINI_PORTILE=false

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)