about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/compilers
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2020-07-01 21:55:06 +0100
committerAlyssa Ross <hi@alyssa.is>2020-11-27 13:27:32 +0000
commita8f71ebd898b2dcbd4c66d7a7bc7e6e5df563f58 (patch)
treefd595a79aef4e2890cb85349e510d83c8d9b37ed /nixpkgs/pkgs/development/compilers
parent9813779f5440de04f3074b388c02334faaeb0b94 (diff)
downloadnixlib-a8f71ebd898b2dcbd4c66d7a7bc7e6e5df563f58.tar
nixlib-a8f71ebd898b2dcbd4c66d7a7bc7e6e5df563f58.tar.gz
nixlib-a8f71ebd898b2dcbd4c66d7a7bc7e6e5df563f58.tar.bz2
nixlib-a8f71ebd898b2dcbd4c66d7a7bc7e6e5df563f58.tar.lz
nixlib-a8f71ebd898b2dcbd4c66d7a7bc7e6e5df563f58.tar.xz
nixlib-a8f71ebd898b2dcbd4c66d7a7bc7e6e5df563f58.tar.zst
nixlib-a8f71ebd898b2dcbd4c66d7a7bc7e6e5df563f58.zip
stdenv: make -nostdinc work as intended
Right now we add glibc to search path also -nostdinc was provided,
which breaks projects providing their own gcc.

(cherry picked from commit 96092dc93640b8ad6520a8bae6f78d62eaba0ec2)
Diffstat (limited to 'nixpkgs/pkgs/development/compilers')
-rw-r--r--nixpkgs/pkgs/development/compilers/gcc/builder.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/development/compilers/gcc/builder.sh b/nixpkgs/pkgs/development/compilers/gcc/builder.sh
index 7b0632986691..d242f1a822cd 100644
--- a/nixpkgs/pkgs/development/compilers/gcc/builder.sh
+++ b/nixpkgs/pkgs/development/compilers/gcc/builder.sh
@@ -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")"