|
From: Bart V. A. <bva...@ac...> - 2010-06-07 06:06:47
|
On Sun, Jun 6, 2010 at 10:41 PM, Julian Seward <js...@ac...> wrote: > Oh, darn. It looks like I broke cross compilation recently by > introducing link_tool_exe.c as part of the build process. > > Honestly .. the your best bet is to rewrite link_tool_exe.c as > a perl script, so it can run on the host. I actually started out > to write it as a perl script, but couldn't find a way to make it > portably do 64-bit arithmetic, which it needs to do on some platforms. > Hence I wimped out and wrote a C program instead. However, that > evidently isn't going to work in this case. Why Perl ? Perl isn't used anywhere yet during the Valgrind build -- that would introduce an additional dependency. Bash can do 64-bit arithmetic as well. An example: $ bash -c 'echo $((1<<62))' 4611686018427387904 Bart. |