Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
mkmf: COUTFLAG does not have `-o` #5749
jruby v22.214.171.124 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)
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