diff options
author | Shane Wang <shane.wang@intel.com> | 2011-12-23 13:25:43 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-03 12:14:22 +0000 |
commit | 2ae7ca4efb4b4362ab4b2e47f011fb41639f2b1e (patch) | |
tree | b7db66355d9e970276af49976e6ee88e75cdca6d /meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_issue_caused_by_ccache.patch | |
parent | 121972e9bf02784daeaa1d18c96b25016140a943 (diff) | |
download | poky-2ae7ca4efb4b4362ab4b2e47f011fb41639f2b1e.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."
(From OE-Core rev: 7f58d1e670470e76077102629efabe91e5c2b9bf)
Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 @@ | |||
1 | The script does not expect use of ccache, hence fix it to recognise it. | ||
2 | |||
3 | 2010/08/17 | ||
4 | Nitin A Kamble <nitin.a.kamble@intel.com> | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | |||
8 | Index: valgrind-3.5.0/coregrind/link_tool_exe_linux.in | ||
9 | =================================================================== | ||
10 | --- valgrind-3.5.0.orig/coregrind/link_tool_exe_linux.in | ||
11 | +++ valgrind-3.5.0/coregrind/link_tool_exe_linux.in | ||
12 | @@ -62,6 +62,11 @@ die "Bogus alt-load address" | ||
13 | |||
14 | # The cc invokation to do the final link | ||
15 | my $cc = $ARGV[1]; | ||
16 | +my $next = 2; | ||
17 | +if ("$cc" eq "ccache") { | ||
18 | + $cc = "$cc $ARGV[2]"; | ||
19 | + $next = 3; | ||
20 | +} | ||
21 | |||
22 | # and the 'restargs' are argv[2 ..] | ||
23 | |||
24 | @@ -71,7 +76,7 @@ my $cc = $ARGV[1]; | ||
25 | my $cmd="$cc -static -Wl,-Ttext=$ala"; | ||
26 | |||
27 | # Add the rest of the parameters | ||
28 | -foreach my $n (2 .. $#ARGV) { | ||
29 | +foreach my $n ($next .. $#ARGV) { | ||
30 | $cmd = "$cmd $ARGV[$n]"; | ||
31 | } | ||
32 | |||