[PATCH v2 3/4] KVM: selftests: Add EXTRA_CFLAGS in top-level Makefile

Anup Patel anup at brainfault.org
Tue Dec 21 01:18:01 PST 2021


On Tue, Dec 21, 2021 at 1:15 AM Sean Christopherson <seanjc at google.com> wrote:
>
> On Mon, Nov 29, 2021, Anup Patel wrote:
> > We add EXTRA_CFLAGS to the common CFLAGS of top-level Makefile
>
> Nit, wrap closer to 75 chars.

Okay, I will update.

>
> > which will allow users to pass additional compile-time flags such
> > as "-static".
>
> In case there's any hesitation in applying this (Paolo asked if this was just for
> debugging in v1), being able to pass "-static" is helpful for our environment as
> our test systems have a funky and minimal configuration (no gcc, and the interpreter
> is in a weird location).  Running selftests either requires building them with
> -static or creating a symbolic link for /lib64/ld-linux-x86-64.so.2.  It's generally
> easier to just tell people to compile with -static.
>
> > Signed-off-by: Anup Patel <anup.patel at wdc.com>
> > ---
>
> Reviewed-and-tested-by: Sean Christopherson <seanjc at google.com>

Thanks, I am planning to queue this for 5.17. Currently, I am waiting for
some reviews on the PATCH4 (last patch).

Regards,
Anup



More information about the linux-riscv mailing list