Merge pull request #91974 from Mic92/nostdinc

stdenv: make -nostdinc work as intended
This commit is contained in:
John Ericson
2020-07-28 19:49:42 -04:00
committed by GitHub
10 changed files with 41 additions and 17 deletions

View File

@@ -61,7 +61,7 @@ if test "$noSysDirs" = "1"; then
if [[ -e "${!curCC}/nix-support/orig-libc" ]]; then
# Figure out what extra compiling flags to pass to the gcc compilers
# being generated to make sure that they use our libc.
extraFlags=($(< "${!curCC}/nix-support/libc-cflags"))
extraFlags=($(< "${!curCC}/nix-support/libc-crt1-cflags") $(< "${!curCC}/nix-support/libc-cflags"))
# The path to the Libc headers
libc_devdir="$(< "${!curCC}/nix-support/orig-libc-dev")"