kexectools: always pass host and target to configure

Fixes #56290.
This commit is contained in:
Gaelan Steele 2020-05-12 11:52:29 -07:00
parent c89072465c
commit b6beb43dd7

View File

@ -14,6 +14,9 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" "pic" "relro" "pie" ];
# Prevent kexec-tools from using uname to detect target, which is wrong in
# cases like compiling for aarch32 on aarch64
configurePlatforms = [ "build" "host" ];
configureFlags = [ "BUILD_CC=${buildPackages.stdenv.cc.targetPrefix}cc" ];
depsBuildBuild = [ buildPackages.stdenv.cc ];
buildInputs = [ zlib ];