summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index b643fc8676..a644beedd4 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -899,7 +899,7 @@ module RbInstall
RbInstall.no_write(options) {super}
end
- if RbConfig::CONFIG["LIBRUBY_RELATIVE"] == "yes" || RbConfig::CONFIG["CROSS_COMPILING"] == "yes"
+ if RbConfig::CONFIG["LIBRUBY_RELATIVE"] == "yes" || RbConfig::CONFIG["CROSS_COMPILING"] == "yes" || ENV["DESTDIR"]
# TODO: always build extensions in bundled gems by build-ext and
# install the built binaries.
def build_extensions