aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2021-09-01 17:05:22 +0200
committerNadia Holmquist Pedersen <nadia@nhp.sh>2021-09-01 17:05:26 +0200
commitaed92e533a96300b18d97e3ae02abfb926d7e6b1 (patch)
tree9a2dbf988d3f66733e1f4f429ce0134a2f1b5647 /tools
parent75b6ea339a4fee8286493a40fe9b6af0ab63d822 (diff)
make extra extra extra EXTRA sure the goddamn libraries are writable
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mac-libs.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/mac-libs.rb b/tools/mac-libs.rb
index a66b409..534b003 100755
--- a/tools/mac-libs.rb
+++ b/tools/mac-libs.rb
@@ -102,6 +102,8 @@ 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] }
+
+ FileUtils.chmod("u+w", prog)
strip prog
libs.each do |lib|