ext/libyajl2/extconf.rb in libyajl2-0.1.7 vs ext/libyajl2/extconf.rb in libyajl2-0.1.8
- old
+ new
@@ -50,10 +50,10 @@
setup_env
dir_config("libyajl")
create_makefile("libyajl")
# ruby on windows helpfully drops a *.def file to export Init_libyajl which we don't need because this isn't really a ruby extension
- FileUtils.rm_f("*.def")
+ FileUtils.rm_f(Dir["*.def"])
# and we need to surgically remove it from the LDFLAGS
$LDFLAGS.gsub!(/\S+.def/, ' ')
# we cheat and build it right away...
system("make V=1")