]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: selftests: Include lib.mk before consuming $(CC)
authorSean Christopherson <seanjc@google.com>
Tue, 13 Dec 2022 00:16:49 +0000 (00:16 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Dec 2022 11:00:48 +0000 (06:00 -0500)
commit5efb946b9569abdfb8a42702d40a5c244096e932
tree5bb8a9bf841fa7e6c1be010820662136f892b030
parent7cf2e7373ab145bf972c3cbcb495fd1a9770c3b0
KVM: selftests: Include lib.mk before consuming $(CC)

Include lib.mk before consuming $(CC) and document that lib.mk overwrites
$(CC) unless make was invoked with -e or $(CC) was specified after make
(which makes the environment override the Makefile).  Including lib.mk
after using it for probing, e.g. for -no-pie, can lead to weirdness.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20221213001653.3852042-11-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/Makefile