[macruby-changes] [4228] MacRuby/trunk/instruby.rb

source_changes at macosforge.org source_changes at macosforge.org
Wed Jun 16 14:25:57 PDT 2010


Revision: 4228
          http://trac.macosforge.org/projects/ruby/changeset/4228
Author:   lsansonetti at apple.com
Date:     2010-06-16 14:25:57 -0700 (Wed, 16 Jun 2010)
Log Message:
-----------
strip symbols from shared+static lib during install

Modified Paths:
--------------
    MacRuby/trunk/instruby.rb

Modified: MacRuby/trunk/instruby.rb
===================================================================
--- MacRuby/trunk/instruby.rb	2010-06-16 21:25:31 UTC (rev 4227)
+++ MacRuby/trunk/instruby.rb	2010-06-16 21:25:57 UTC (rev 4228)
@@ -131,12 +131,16 @@
 end
 
 def install(src, dest, options = {})
+  strip = options.delete(:strip)
   options[:preserve] = true
   super(src, with_destdir(dest), options)
+  dest = File.join(dest, File.basename(src)) if $made_dirs[dest]
   if $installed_list
-    dest = File.join(dest, File.basename(src)) if $made_dirs[dest]
     $installed_list.puts dest
   end
+  if strip
+    system("/usr/bin/strip -x \"#{dest}\"")
+  end
 end
 
 def ln_sf(src, dest)
@@ -235,7 +239,7 @@
 
   makedirs [bindir, libdir, archlibdir]
 
-  install ruby_install_name+exeext, bindir, :mode => $prog_mode
+  install ruby_install_name+exeext, bindir, :mode => $prog_mode, :strip => true
   if rubyw_install_name and !rubyw_install_name.empty?
     install rubyw_install_name+exeext, bindir, :mode => $prog_mode
   end
@@ -245,8 +249,8 @@
   if enable_shared and dll != lib
     install dll, bindir, :mode => $prog_mode
   end
-  install lib, libdir, :mode => $prog_mode unless lib == arc
-  install arc, libdir, :mode => $data_mode #if enable_static
+  install lib, libdir, :mode => $prog_mode, :strip => true
+  install arc, libdir, :mode => $data_mode, :strip => true
   install "rbconfig.rb", archlibdir, :mode => $data_mode
   install "rbconfig.rbo", archlibdir, :mode => $data_mode
   if CONFIG["ARCHFILE"]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100616/1a1137be/attachment.html>


More information about the macruby-changes mailing list