Skip to content

Commit

Permalink
making sure we export symbols in the windows 1.9.1 build
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Nov 17, 2010
1 parent e77c7ff commit 5d98712
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tasks/cross_compile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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.