http://code.google.com/p/valgrind-variant/source/detail?r=133
Modified:
/trunk/valgrind/coregrind/link_tool_exe_darwin.in
=======================================
--- /trunk/valgrind/coregrind/link_tool_exe_darwin.in Tue Dec 27 02:41:06
2011
+++ /trunk/valgrind/coregrind/link_tool_exe_darwin.in Tue Dec 27 05:44:52
2011
@@ -71,6 +71,7 @@
use warnings;
use strict;
use Cwd 'abs_path';
+use File::Basename;
# we need to be able to do 64-bit arithmetic:
use Math::BigInt;
@@ -174,7 +175,7 @@
# and now kludge the tool exe
# see bug 267997
-$cmd = abs_path($0) . "/../coregrind/fixup_macho_loadcmds";
+$cmd = dirname(abs_path($0)) . "/../coregrind/fixup_macho_loadcmds";
$cmd = "$cmd $stack_addr_str $stack_size_str $outname";
print "link_tool_exe_darwin: $cmd\n";