Merge pull request #87690 from Gaelan/kexec-tools-cross

This commit is contained in:
Jörg Thalheim 2020-05-12 21:23:16 +01:00 committed by GitHub
commit b9a81f7545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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