summaryrefslogtreecommitdiff
path: root/solenv/bin/macosx-change-install-names.pl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-11-22 12:13:00 +0200
committerTor Lillqvist <tml@iki.fi>2012-11-22 12:23:18 +0200
commitf5bdeec992923a0eb3fb3357c1afe3d7fff93840 (patch)
treeb0a2165acc440d9b10205999ae68ea68d1efca36 /solenv/bin/macosx-change-install-names.pl
parent642b86aa541aa977143ac5a084550f3390423926 (diff)
Use xcrun when available to run install_name_tool
This hopefully should help in situations like Jonathan Aquilina's, where /usr/bin/install_name_tool does not correspond to the tool-chain used (but is from an earlier version of Xcode). Change-Id: I5b4ca9e5e163fb4a84967577d2146cdbe8344f03
Diffstat (limited to 'solenv/bin/macosx-change-install-names.pl')
-rw-r--r--solenv/bin/macosx-change-install-names.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/bin/macosx-change-install-names.pl b/solenv/bin/macosx-change-install-names.pl
index 82380e1a02d6..ed60cc2030e9 100644
--- a/solenv/bin/macosx-change-install-names.pl
+++ b/solenv/bin/macosx-change-install-names.pl
@@ -101,7 +101,7 @@ foreach $file (@ARGV)
close(IN);
if ($change ne "")
{
- $call = "install_name_tool$change $file";
+ $call = "$ENV{'XCRUN'} install_name_tool$change $file";
system($call) == 0 or die "cannot $call";
}
}