kexectools: always pass host and target to configure

Fixes #56290.
gstqt5
Gaelan Steele 2020-05-12 11:52:29 -07:00
parent c89072465c
commit b6beb43dd7
1 changed files with 3 additions and 0 deletions

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 ];