Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

making sure we export symbols in the windows 1.9.1 build

  • Loading branch information...
commit 5d98712f4229fa0e8dde04343012adf788cecbfd 1 parent e77c7ff
@flavorjones flavorjones authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 tasks/cross_compile.rb
View
7 tasks/cross_compile.rb
@@ -166,8 +166,9 @@
desc "build a windows gem without all the ceremony."
task "gem:windows" do
- # check that rake-compiler config contains the right patchlevels of 1.8.6 and 1.9.1
rake_compiler_config = YAML.load_file("#{ENV['HOME']}/.rake-compiler/config.yml")
+
+ # check that rake-compiler config contains the right patchlevels of 1.8.6 and 1.9.1. see #279.
["1.8.6-p383", "1.9.1-p243"].each do |version|
majmin, patchlevel = version.split("-")
rbconfig = "rbconfig-#{majmin}"
@@ -176,5 +177,9 @@
end
end
+ # verify that --export-all is in the 1.9.1 rbconfig. see #279,#374,#375.
+ rbconfig_191 = rake_compiler_config["rbconfig-1.9.1"]
+ raise "rbconfig #{rbconfig_191} needs --export-all in its DLDFLAGS value" if File.read(rbconfig_191).grep(/CONFIG\["DLDFLAGS"\].*--export-all/).empty?
+
system("env PKG_CONFIG_PATH=#{RAKE_COMPILER_PKGCONFIG} RUBY_CC_VERSION=1.8.6:1.9.1 rake cross native gem") || raise("build failed!")
end

0 comments on commit 5d98712

Please sign in to comment.
Something went wrong with that request. Please try again.