diff --git a/pkgs/os-specific/linux/libcap/default.nix b/pkgs/os-specific/linux/libcap/default.nix index aac8c06172d4..a0adb3813fd8 100644 --- a/pkgs/os-specific/linux/libcap/default.nix +++ b/pkgs/os-specific/linux/libcap/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation { preBuild = " substituteInPlace libcap/Makefile --replace /usr/include ${stdenv.glibc}/include - installFlags=\"LIBDIR=$out/lib INCDIR=$out/include SBINDIR=$out/sbin MANDIR=$out/man\" + makeFlags=\"LIBDIR=$out/lib INCDIR=$out/include SBINDIR=$out/sbin MANDIR=$out/man\" "; patches = [ diff --git a/pkgs/stdenv/generic/setup-new2.sh b/pkgs/stdenv/generic/setup-new2.sh index aa85f5edbf70..595f0f364905 100644 --- a/pkgs/stdenv/generic/setup-new2.sh +++ b/pkgs/stdenv/generic/setup-new2.sh @@ -566,8 +566,10 @@ buildW() { eval "$preBuild" - echo "make flags: $makeFlags ${makeFlagsArray[@]}" - make $makeFlags "${makeFlagsArray[@]}" || fail + echo "make flags: $makeFlags ${makeFlagsArray[@]} $buildFlags ${buildFlagsArray[@]}" + make \ + $makeFlags "${makeFlagsArray[@]}" \ + $buildFlags "${buildFlagsArray[@]}" || fail eval "$postBuild" } @@ -638,8 +640,10 @@ installW() { if test -z "$installTargets"; then installTargets=install fi - echo "install flags: $installTargets $installFlags ${installFlagsArray[@]}" - make $installTargets $installFlags "${installFlagsArray[@]}" || fail + echo "install flags: $installTargets $makeFlags ${makeFlagsArray[@]} $installFlags ${installFlagsArray[@]}" + make $installTargets \ + $makeFlags ${makeFlagsArray[@]} \ + $installFlags "${installFlagsArray[@]}" || fail fi else eval "$installCommand"