Skip to content

Commit

Permalink
Android doesn't have pthreads lib, it uses a flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Qard committed Sep 1, 2014
1 parent 249a42f commit bbace28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mrbgem.rake
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ MRuby::Gem::Specification.new('mruby-thread') do |spec|
spec.license = 'MIT'
spec.authors = 'mattn'

spec.linker.libraries << ['pthread']
if build.toolchains.include?("androideabi")
spec.cc.flags << '-DHAVE_PTHREADS'
else
spec.linker.libraries << ['pthread']
end
end

0 comments on commit bbace28

Please sign in to comment.