Skip to content

Commit

Permalink
Merge pull request #68 from avsej/fix-freebsd-build
Browse files Browse the repository at this point in the history
Fix build on FreeBSD
  • Loading branch information
mattn committed Jun 22, 2017
2 parents 329e221 + 4f667e9 commit 187148c
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') || (is_cross && spec.build.host_target && spec.build.host_target.include?("mingw32"))
spec.linker.libraries << ['uv', 'psapi', 'iphlpapi', 'ws2_32']
elsif (not is_cross and `uname`.chomp =~ /darwin/i) || (is_cross && spec.build.host_target && spec.build.host_target.include?("darwin"))
elsif (not is_cross and `uname`.chomp =~ /darwin|freebsd/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 187148c

Please sign in to comment.