summaryrefslogtreecommitdiff
path: root/instruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'instruby.rb')
-rw-r--r--instruby.rb13
1 files changed, 12 insertions, 1 deletions
diff --git a/instruby.rb b/instruby.rb
index d489e0f..1c2610a 100644
--- a/instruby.rb
+++ b/instruby.rb
@@ -29,11 +29,22 @@ for dll in Dir['*.dll']
File.install dll, "#{destdir}#{bindir}/#{dll}", 0755, true
end
File.makedirs "#{destdir}#{libdir}", true
-for lib in ["libruby.so", "libruby.so.LIB"]
+for lib in ["libruby.so.LIB", CONFIG["LIBRUBY_SO"]]
if File.exist? lib
File.install lib, "#{destdir}#{libdir}", 0644, true
end
end
+pwd = Dir.pwd
+Dir.chdir libdir
+if File.exist? CONFIG["LIBRUBY_SO"]
+ for alias in [CONFIG["LIBRUBY_SO"]]
+ if File.exist? alias
+ File.delete alias
+ end
+ File.symlink CONFIG["LIBRUBY_SO"], alias
+ print "link #{CONFIG['LIBRUBY_SO']} -> #{alias}\n"
+end
+Dir.chdir pwd
File.makedirs "#{destdir}#{pkglibdir}", true
File.makedirs "#{destdir}#{archdir}", true
Dir.chdir "ext"