Skip to content

Commit

Permalink
Fix JRuby compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed May 29, 2019
1 parent 9309858 commit 5a6ceda
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ext/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,15 @@
MakeMakefile.send(:remove_const, :EXPORT_PREFIX)
MakeMakefile::EXPORT_PREFIX = nil

if RUBY_PLATFORM == 'java'
# COUTFLAG is not set correctly on jruby
# See https://github.com/jruby/jruby/issues/5749
MakeMakefile.send(:remove_const, :COUTFLAG)
MakeMakefile::COUTFLAG = '-o $(empty)'

# CCDLFLAGS is not set correctly on jruby
# See https://github.com/jruby/jruby/issues/5751
$CXXFLAGS << ' -fPIC'
end

create_makefile 'sassc/libsass'

0 comments on commit 5a6ceda

Please sign in to comment.