|
From: Julian S. <js...@ac...> - 2010-06-11 12:54:33
|
Attached is a perl script from Mogens, which could be used as a starting point. So, I'm not saying necessarily that perl is the right solution -- only that I thought it might be easier and more portable than a shell script, when it comes to doing the 64-bit arithmetic stuff needed for Darwin on branches/MACOSX106. If you can make it work with a shell script then fine, that's just as good. J On Friday, June 11, 2010, Julian Seward wrote: > On Thursday, June 10, 2010, Bart Van Assche wrote: > > Hello, > > > > The patch below replaces link_tool_exe.c by a shell script such that > > the Valgrind source code can again be cross-compiled. Are there any > > comments about this approach ? > > Yes .. what it needs to do on Darwin on branches/MACOSX106 is > more complicated. > > * filter the arguments provided, to identify the *.a and *.o ones > > * convert argv[1] into a 64-bit number, subtract 0x80000 from it, > convert it back to text > > which is why I was proposing to do it as a perl script, as such > things would be easier to do portably in perl (yes?) > > Perl is already a build prerequisite, so this wouldn't give any > new dependencies. |