diff options
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind/fix_issue_caused_by_ccache.patch')
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind/fix_issue_caused_by_ccache.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/fix_issue_caused_by_ccache.patch b/meta/recipes-devtools/valgrind/valgrind/fix_issue_caused_by_ccache.patch new file mode 100644 index 0000000000..a5c273c45b --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind/fix_issue_caused_by_ccache.patch | |||
@@ -0,0 +1,30 @@ | |||
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 | Index: valgrind-3.5.0/coregrind/link_tool_exe_linux.in | ||
7 | =================================================================== | ||
8 | --- valgrind-3.5.0.orig/coregrind/link_tool_exe_linux.in | ||
9 | +++ valgrind-3.5.0/coregrind/link_tool_exe_linux.in | ||
10 | @@ -62,6 +62,11 @@ die "Bogus alt-load address" | ||
11 | |||
12 | # The cc invokation to do the final link | ||
13 | my $cc = $ARGV[1]; | ||
14 | +my $next = 2; | ||
15 | +if ("$cc" eq "ccache") { | ||
16 | + $cc = "$cc $ARGV[2]"; | ||
17 | + $next = 3; | ||
18 | +} | ||
19 | |||
20 | # and the 'restargs' are argv[2 ..] | ||
21 | |||
22 | @@ -71,7 +76,7 @@ my $cc = $ARGV[1]; | ||
23 | my $cmd="$cc -static -Wl,-Ttext=$ala"; | ||
24 | |||
25 | # Add the rest of the parameters | ||
26 | -foreach my $n (2 .. $#ARGV) { | ||
27 | +foreach my $n ($next .. $#ARGV) { | ||
28 | $cmd = "$cmd $ARGV[$n]"; | ||
29 | } | ||
30 | |||