summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/valgrind/valgrind-3.6.1/fix_issue_caused_by_ccache.patch
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2011-04-19 15:22:26 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-04-28 09:52:24 +0100
commit85898bb2d60ccf171ead561d05f3742a2cf30c8d (patch)
tree75db3e7396e0249570c85a27adf651c54f5b5fe1 /meta/recipes-devtools/valgrind/valgrind-3.6.1/fix_issue_caused_by_ccache.patch
parent6108c5962a717e1ece4aa7acb0f543f7d8e86a35 (diff)
downloadopenembedded-core-85898bb2d60ccf171ead561d05f3742a2cf30c8d.tar.gz
openembedded-core-85898bb2d60ccf171ead561d05f3742a2cf30c8d.tar.bz2
openembedded-core-85898bb2d60ccf171ead561d05f3742a2cf30c8d.tar.xz
openembedded-core-85898bb2d60ccf171ead561d05f3742a2cf30c8d.zip
valgrind: upgrade to version 3.6.1
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind-3.6.1/fix_issue_caused_by_ccache.patch')
-rw-r--r--meta/recipes-devtools/valgrind/valgrind-3.6.1/fix_issue_caused_by_ccache.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind-3.6.1/fix_issue_caused_by_ccache.patch b/meta/recipes-devtools/valgrind/valgrind-3.6.1/fix_issue_caused_by_ccache.patch
new file mode 100644
index 000000000..4658567b2
--- /dev/null
+++ b/meta/recipes-devtools/valgrind/valgrind-3.6.1/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]";
+ }
+