We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f98917 commit e1e44d2Copy full SHA for e1e44d2
ext/extconf.rb
@@ -70,13 +70,14 @@
70
MakeMakefile.send(:remove_const, :EXPORT_PREFIX)
71
MakeMakefile::EXPORT_PREFIX = nil
72
73
-if RUBY_PLATFORM == 'java'
74
- # COUTFLAG is not set correctly on jruby
+if RUBY_ENGINE == 'jruby' &&
+ Gem::Version.new(RUBY_ENGINE_VERSION) < Gem::Version.new('9.2.8.0')
75
+ # COUTFLAG is not set correctly on jruby<9.2.8.0
76
# See https://github.com/jruby/jruby/issues/5749
77
MakeMakefile.send(:remove_const, :COUTFLAG)
78
MakeMakefile::COUTFLAG = '-o $(empty)'
79
- # CCDLFLAGS is not set correctly on jruby
80
+ # CCDLFLAGS is not set correctly on jruby<9.2.8.0
81
# See https://github.com/jruby/jruby/issues/5751
82
$CXXFLAGS << ' -fPIC'
83
end
0 commit comments