diff --git a/pkgs/build-support/gcc-cross-wrapper/builder.sh b/pkgs/build-support/gcc-cross-wrapper/builder.sh index ae5e92e5de6..2299574e85a 100644 --- a/pkgs/build-support/gcc-cross-wrapper/builder.sh +++ b/pkgs/build-support/gcc-cross-wrapper/builder.sh @@ -40,7 +40,7 @@ doSubstitute() { --subst-var "cflagsLink" \ --subst-var "ldflags" \ --subst-var "ldflagsBefore" \ - --subst-var-by "ld" "$ldPath/ld" + --subst-var-by "ld" "$ldPath/$crossConfig-ld" } diff --git a/pkgs/misc/uboot/default.nix b/pkgs/misc/uboot/default.nix index f1436623adc..5c38f1d053b 100644 --- a/pkgs/misc/uboot/default.nix +++ b/pkgs/misc/uboot/default.nix @@ -35,14 +35,14 @@ stdenv.mkDerivation { buildPhase = '' unset src - if test -z "$crossTarget"; then + if test -z "$crossConfig"; then make clean all else make clean all ARCH=arm CROSS_COMPILE=$crossConfig- fi ''; - buildInputs = [ unzip ]; + buildNativeInputs = [ unzip ]; dontStrip = true; NIX_STRIP_DEBUG = false;