ipxe: revert "fix build by fixing -idirafter ordering"
This reverts commita9e6a5c1bc
. 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
25206ed9a8
commit
58ddf90bfa
1 changed files with 0 additions and 10 deletions
|
@ -48,16 +48,6 @@ stdenv.mkDerivation rec {
|
|||
substituteInPlace src/util/genfsimg --replace " syslinux " " true "
|
||||
''; # calling syslinux on a FAT image isn't going to work
|
||||
|
||||
# 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)
|
||||
'';
|
||||
|
||||
# not possible due to assembler code
|
||||
hardeningDisable = [ "pic" "stackprotector" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue