Skip to content

Commit

Permalink
add correct linker libs for os x cross builds
Browse files Browse the repository at this point in the history
  • Loading branch information
hone committed Aug 3, 2015
1 parent 7cbf159 commit 752acc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrbgem.rake
Expand Up @@ -9,7 +9,7 @@ MRuby::Gem::Specification.new('mruby-uv') do |spec|

if not is_cross and ENV['OS'] == 'Windows_NT'
spec.linker.libraries << ['uv', 'psapi', 'iphlpapi', 'ws2_32']
elsif not is_cross and `uname`.chomp =~ /darwin/i
elsif (not is_cross and `uname`.chomp =~ /darwin/i) || (is_cross && spec.build.host_target && spec.build.host_target.include?("darwin"))
spec.linker.libraries << ['uv', 'pthread', 'm']
else
spec.linker.libraries << ['uv', 'pthread', 'rt', 'm', 'dl']
Expand Down

0 comments on commit 752acc3

Please sign in to comment.