diff options
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r-- | lib/mkmf.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 2e2da375f4..1976744cbd 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -920,7 +920,7 @@ static: $(STATIC_LIB)#{$extout ? " install-rb" : ""} mfile.print CLEANINGS dirs = [] mfile.print "install: install-so install-rb\n\n" - dirs << (dir = "$(RUBYARCHDIR)") + sodir = dir = "$(RUBYARCHDIR)" mfile.print("install-so: #{dir}\n") if target f = "$(DLLIB)" @@ -946,6 +946,7 @@ static: $(STATIC_LIB)#{$extout ? " install-rb" : ""} end end end + dirs.unshift(sodir) if target and !dirs.include?(sodir) dirs.each {|dir| mfile.print "#{dir}:\n\t@$(MAKEDIRS) $@\n"} mfile.print <<-SITEINSTALL |