From 00e4df74212f78faf415020323731e60f7bda6f3 Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Sun, 25 Apr 2021 10:06:19 +0200 Subject: Strip Mac libraries --- tools/mac-libs.rb | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3