diff options
author | Lars Kanis <lars@greiz-reinsdorf.de> | 2020-12-23 22:39:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 06:39:21 +0900 |
commit | d1e053eb2acc02d87c18cb5832d82b3e9eaafbfa (patch) | |
tree | 779d25fad4e10b8052e04759b440ceb60874deab | |
parent | c76f433d4e2cc922fc027eb7e88d7fb361969f6b (diff) | |
download | rake-compiler-d1e053eb2acc02d87c18cb5832d82b3e9eaafbfa.tar.gz |
Don't mask out build env vars for cross-ruby (#182)
This was introduced in commit a7c113e580c1565000166f9967da82ff2ecdaeaa to avoid interference with host build.
However it prohibits setting important flags for cross-build.
Also don't force 'LDFLAGS=-pipe -s' in configure, which doesn't work with clang targeting MacOS.
It can now be set externally.
-rw-r--r-- | tasks/bin/cross-ruby.rake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tasks/bin/cross-ruby.rake b/tasks/bin/cross-ruby.rake index 8edf5cd..8317a2a 100644 --- a/tasks/bin/cross-ruby.rake +++ b/tasks/bin/cross-ruby.rake @@ -46,7 +46,7 @@ RUBY_SOURCE = ENV['SOURCE'] RUBY_BUILD = RbConfig::CONFIG["host"] # Unset any possible variable that might affect compilation -["CC", "CXX", "CPPFLAGS", "LDFLAGS", "RUBYOPT"].each do |var| +["RUBYOPT"].each do |var| ENV.delete(var) end @@ -119,7 +119,6 @@ RUBY_CC_VERSIONS.split(":").each do |ruby_cc_version| '--enable-shared', '--disable-install-doc', '--with-ext=', - 'LDFLAGS=-pipe -s', ] # Force Winsock2 for Ruby 1.8, 1.9 defaults to it |