diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb index 9a3bb4ac..ea2aec65 100644 --- a/bindings/ruby/extconf.rb +++ b/bindings/ruby/extconf.rb @@ -66,7 +66,7 @@ system('perl -Mlib=.. -MSigarWrapper -e generate Ruby .') $distcleanfiles = ['rbsigar_generated.rx'] #XXX seems mkmf forces basename on srcs #XXX should be linking against libsigar anyhow -Dir["../../src/*.c","#{osdir}/*.c"].each do |file| +(Dir["../../src/*.c"] + Dir["#{osdir}/*.c"]).each do |file| cf = File.basename(file) print file + ' -> ' + cf + "\n" if is_win32