diff options
author | 2011-12-23 13:25:43 +0800 | |
---|---|---|
committer | 2012-01-02 20:26:23 -0800 | |
commit | 7f58d1e670470e76077102629efabe91e5c2b9bf (patch) | |
tree | 3820245b5c439fb4eef397227287ecf79d9e6f77 /meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_issue_caused_by_ccache.patch | |
parent | 33e0cdbfe8ef9e8901badbd8bce1fcdab5f8b841 (diff) | |
download | openembedded-core-contrib-7f58d1e670470e76077102629efabe91e5c2b9bf.tar.gz |
valgrind: upgrade to 3.7.0
This patch is to upgrade valgrind to 3.7.0.
The licenses are changed from "Copyright (C) 2000-2010 Julian Seward. All rights reserved." to "Copyright (C) 2000-2011 Julian Seward. All rights reserved."
Signed-off-by: Shane Wang <shane.wang@intel.com>
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_issue_caused_by_ccache.patch')
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_issue_caused_by_ccache.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_issue_caused_by_ccache.patch b/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_issue_caused_by_ccache.patch new file mode 100644 index 0000000000..4658567b21 --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_issue_caused_by_ccache.patch @@ -0,0 +1,32 @@ +The script does not expect use of ccache, hence fix it to recognise it. + +2010/08/17 +Nitin A Kamble <nitin.a.kamble@intel.com> + +Upstream-Status: Inappropriate [configuration] + +Index: valgrind-3.5.0/coregrind/link_tool_exe_linux.in +=================================================================== +--- valgrind-3.5.0.orig/coregrind/link_tool_exe_linux.in ++++ valgrind-3.5.0/coregrind/link_tool_exe_linux.in +@@ -62,6 +62,11 @@ die "Bogus alt-load address" + + # The cc invokation to do the final link + my $cc = $ARGV[1]; ++my $next = 2; ++if ("$cc" eq "ccache") { ++ $cc = "$cc $ARGV[2]"; ++ $next = 3; ++} + + # and the 'restargs' are argv[2 ..] + +@@ -71,7 +76,7 @@ my $cc = $ARGV[1]; + my $cmd="$cc -static -Wl,-Ttext=$ala"; + + # Add the rest of the parameters +-foreach my $n (2 .. $#ARGV) { ++foreach my $n ($next .. $#ARGV) { + $cmd = "$cmd $ARGV[$n]"; + } + |