Skip to content

Commit c204cb9

Browse files
committed
Fix 1.8 support
We need to check for libpthread when compiling. Ruby >=1.9 already links against pthread, so it would Just Work (tm) but 1.8 would not. Considering how long this is broken with no one complaining, why do we still support 1.8?
1 parent e833524 commit c204cb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/sqlite3/extconf.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def asplode missing
2828
end
2929

3030
asplode('sqlite3.h') unless find_header 'sqlite3.h'
31+
find_library 'pthread', 'pthread_create' # 1.8 support. *shrug*
3132
asplode('sqlite3') unless find_library 'sqlite3', 'sqlite3_libversion_number'
3233

3334
# Functions defined in 1.9 but not 1.8

0 commit comments

Comments
 (0)