diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-03-16 17:26:10 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-03-16 17:26:10 +0900 |
commit | 8a6ba10f9dd456cf54de800203cf04bbe42271fb (patch) | |
tree | 0fac61584a916862892fe153af0614a6768ef518 /tool | |
parent | 0f2f07a9bb0fcbfe897e956965fcf0cfb1ffdbfa (diff) | |
download | ruby-8a6ba10f9dd456cf54de800203cf04bbe42271fb.tar.gz |
Do not make disabled directories at installation [Bug #12392]
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/rbinstall.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index ce7a8ea5e6..b8526c18b5 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -335,10 +335,14 @@ rubyhdrdir = CONFIG["rubyhdrdir", true] archhdrdir = CONFIG["rubyarchhdrdir"] || (rubyhdrdir + "/" + CONFIG['arch']) rubylibdir = CONFIG["rubylibdir", true] archlibdir = CONFIG["rubyarchdir", true] -sitelibdir = CONFIG["sitelibdir"] -sitearchlibdir = CONFIG["sitearchdir"] -vendorlibdir = CONFIG["vendorlibdir"] -vendorarchlibdir = CONFIG["vendorarchdir"] +if CONFIG["sitedir"] + sitelibdir = CONFIG["sitelibdir"] + sitearchlibdir = CONFIG["sitearchdir"] +end +if CONFIG["vendordir"] + vendorlibdir = CONFIG["vendorlibdir"] + vendorarchlibdir = CONFIG["vendorarchdir"] +end mandir = CONFIG["mandir", true] docdir = CONFIG["docdir", true] enable_shared = CONFIG["ENABLE_SHARED"] == 'yes' |