diff options
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 | |||