On 21 May 2013 22:46, Michael S. Tsirkin <m...@redhat.com> wrote:
> Once in a while make gets killed and doesn't
> clean up partial object files after it.
> Result is nasty errors from link.
> This hack checks object is well formed before linking,
> and rebuilds it if not.
>
> Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
> ---
>
> Is below useful for others?

Seems to me like this is just working around a make bug:
it is supposed to delete the partial object if it gets
killed.

> +$(all-obj-y): % : $$(if $$(shell size %), , CORRUPTBINARY)

If we do do this, we probably ought to be running the
cross-prefix version of size, not the host version.

thanks
-- PMM

Reply via email to