summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-05-20 12:57:10 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-05-20 12:57:10 -0700
commit313a72da121459a2d9bd3028c8177accfaf5c59c (patch)
treedb849442e3cde46f6de954d69e5e5feb881e2678
parent7112e3cefc0e91e4f221dce8a2463bdefd3c7526 (diff)
downloadlibyajl2-gem-313a72da121459a2d9bd3028c8177accfaf5c59c.tar.gz
more windows fixes
-rw-r--r--ext/libyajl2/extconf.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/libyajl2/extconf.rb b/ext/libyajl2/extconf.rb
index 496167e..7892a84 100644
--- a/ext/libyajl2/extconf.rb
+++ b/ext/libyajl2/extconf.rb
@@ -50,6 +50,12 @@ module Libyajl2Build
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")
+ # 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")
# ...so we can hack up what install does later and copy over the include files