diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb index 296a6cd9e..57740c147 100644 --- a/bindings/ruby/extconf.rb +++ b/bindings/ruby/extconf.rb @@ -31,6 +31,12 @@ end $CPPFLAGS += ' -DDARWIN' $LDFLAGS += ' -framework CoreServices -framework IOKit' + + # only for Yosemite + if ENV['_system_version'] =~ /\A10\.10/ + cc = ENV['CC'] || %x(which clang).chop + CONFIG['CC']= cc + end when /bsd/ os = 'darwin' have_library("kvm")