From 7c4b1b782ae5de7e253ac742b829d6394c92dac3 Mon Sep 17 00:00:00 2001 From: Daniel Fullmer Date: Tue, 20 Oct 2020 22:07:51 -0700 Subject: [PATCH] klibc: fix cross-compilation Tested pkgsCross.armv7l-hf-multiplatform.klibc --- pkgs/os-specific/linux/klibc/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/klibc/default.nix b/pkgs/os-specific/linux/klibc/default.nix index 55faa216a12..ad5307f9e3a 100644 --- a/pkgs/os-specific/linux/klibc/default.nix +++ b/pkgs/os-specific/linux/klibc/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, linuxHeaders, perl }: +{ lib, stdenv, fetchurl, buildPackages, linuxHeaders, perl }: let commonMakeFlags = [ @@ -18,6 +18,7 @@ stdenv.mkDerivation rec { patches = [ ./no-reinstall-kernel-headers.patch ]; + depsBuildBuild = [ buildPackages.stdenv.cc ]; nativeBuildInputs = [ perl ]; hardeningDisable = [ "format" "stackprotector" ];