Re: [Discussion] Issue with Rumprun GCC Wrapper (-print-search-dirs flag )

  • From: Antti Kantee <pooka@xxxxxx>
  • To: rumpkernel-users@xxxxxxxxxxxxx
  • Date: Thu, 3 Sep 2015 15:33:38 +0000

On 03/09/15 11:09, Vincent Schwarzer wrote:

Thanks! I will have a look into the inner workings of -print-search-dirs
this week. :)
What does the command *brprintmetainfo* in the patch*?*

It's just a small C program which prints timestamps and the size of a file, That info can then be used to detect if the output file was modified. There's really no portable way to print that info from a shell utility alone (stat is non-standard, ls -l is not accurate enough, md5 is overkill and non-standard, etc.), so I added a small C program to do the necessary thing.

Note: the scheme is not perfect, and will fail if some other program modifies presumed OUTPUT during the window, but I think that's a fairly unlikely scenario, and most likely only applies when OUTPUT=a.out.

Other related posts: