forked from mirrors/nixpkgs
ubootTools: revert "fix build by fixing -idirafter ordering"
This reverts commit8b3a31f923
. commit8c80bd08b7
("build-support/cc-wrapper: pass in non-existent --sysroot= to untangle from libc") was reverted. We can drop the workaround.
This commit is contained in:
parent
e2e400e267
commit
25206ed9a8
|
@ -92,16 +92,6 @@ let
|
|||
|
||||
passAsFile = [ "extraConfig" ];
|
||||
|
||||
# Workaround '-idirafter' ordering bug in staging-next:
|
||||
# https://github.com/NixOS/nixpkgs/pull/210004
|
||||
# where libc '-idirafter' gets added after user's idirafter and
|
||||
# breaks.
|
||||
# TODO(trofi): remove it in staging once fixed in cc-wrapper.
|
||||
preConfigure = ''
|
||||
export NIX_CFLAGS_COMPILE_BEFORE_${lib.replaceStrings ["-" "."] ["_" "_"] buildPackages.stdenv.hostPlatform.config}=$(< ${buildPackages.stdenv.cc}/nix-support/libc-cflags)
|
||||
export NIX_CFLAGS_COMPILE_BEFORE_${lib.replaceStrings ["-" "."] ["_" "_"] stdenv.hostPlatform.config}=$(< ${stdenv.cc}/nix-support/libc-cflags)
|
||||
'';
|
||||
|
||||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
|
||||
|
|
Loading…
Reference in a new issue