diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/mac-libs.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/mac-libs.rb b/tools/mac-libs.rb index d8ddcab..0c1920f 100755 --- a/tools/mac-libs.rb +++ b/tools/mac-libs.rb @@ -92,10 +92,15 @@ def install_name_tool(exec, action, path1, path2 = nil) end end +def strip(lib) + `strip -SNTx "#{lib}"` +end + def fixup_libs(prog, orig_path) throw "fixup_libs: #{prog} doesn't exist" unless File.exist? prog libs = get_load_libs(prog).map { |it| expand_load_path(orig_path, it) }.select { |it| not system_lib? it[0] } + strip prog libs.each do |lib| libpath, libtype = lib |