]> www.infradead.org Git - users/dwmw2/linux.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>
Sat, 24 Dec 2022 09:26:06 +0000 (04:26 -0500)
commit62f7c331ccdf662072ea7fe72d6744221aa958d3
tree17b1a280b5d0a27a7eef74683395fb82b15d8b1f
parent6b9c9ce56d80f0007b8d4b1407f0627f3e3bd868
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