summaryrefslogtreecommitdiff
path: root/homebrew/rust/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/rust/.make.sh-auto')
-rw-r--r--homebrew/rust/.make.sh-auto5
1 files changed, 5 insertions, 0 deletions
diff --git a/homebrew/rust/.make.sh-auto b/homebrew/rust/.make.sh-auto
new file mode 100644
index 000000000..9f774630f
--- /dev/null
+++ b/homebrew/rust/.make.sh-auto
@@ -0,0 +1,5 @@
+pkg:setup
+Dir["#{lib}/rustlib/**/*.dylib"].each do |dylib|
+chmod 0664, dylib
+MachO::Tools.change_dylib_id(dylib, "@rpath/#{File.basename(dylib)}")
+chmod 0444, dylib