ext/extconf.rb in ruby-vpi-8.2.0 vs ext/extconf.rb in ruby-vpi-9.0.0
- old
+ new
@@ -1,4 +1,7 @@
require 'mkmf'
+require 'rbconfig'
-have_library 'pthread', 'pthread_create'
-create_makefile 'ruby-vpi'
+have_library('pthread', 'pthread_create') &&
+have_library(Config::CONFIG['RUBY_SO_NAME'] || 'ruby', 'ruby_init') &&
+
+create_makefile('ruby-vpi')