|
From: Julian S. <js...@ac...> - 2010-06-13 12:08:26
|
Attached is a diff against the svn trunk, which does the linking with perl scripts. I think this will satisfy all requirements (when complete; so far I only filled in the linux-specific parts): * supports cross-compilation, since it's a perl script * supports 64-bit arithmetic as needed for darwin * uses different perl scripts for linux and darwin, so as to avoid introducing an unnecessary dependency on Math::BigInt into linux builds. If anybody could check that cross-compilation still works using this patch, that would be great. I propose to fill in the Darwin specific parts, and then if there is no reported breakage I'll commit it. J On Friday, June 11, 2010, Julian Seward wrote: > 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. |