jruby v9.2.7.0 produces Makefiles with invalid C compilation command.
Diffing a Makefile produced from the same extconf.rb with MRI vs jRuby
OUTFLAG = -o $(empty)
-COUTFLAG = -o $(empty)
-CSRCFLAG = $(empty)
+COUTFLAG = $(empty)
Note that COUTFLAG in JRuby-produced Makefile is missing -o, resulting in an invalid cc command.
Work-around I'm using in the extconf.rb file:
# COUTFLAG is not set correctly on jruby
if RUBY_PLATFORM == 'jruby'
MakeMakefile.send(:remove_const, :COUTFLAG)
MakeMakefile::COUTFLAG = '-o $(empty)'
end
jruby v9.2.7.0 produces Makefiles with invalid C compilation command.
Diffing a Makefile produced from the same extconf.rb with MRI vs jRuby
Note that
COUTFLAGin JRuby-produced Makefile is missing-o, resulting in an invalidcccommand.Work-around I'm using in the extconf.rb file: