Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
jruby v18.104.22.168 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::COUTFLAG = '-o $(empty)'
The text was updated successfully, but these errors were encountered:
I'm guessing it's because COUTFLAG is not set here, only OUTFLAG is:
Sorry, something went wrong.
RbConfigLibrary: Set COUTFLAG to "-o "
RbConfigLibrary: Set COUTFLAG to "-o " (#5750)
Successfully merging a pull request may close this issue.