gcc: add --with-native-system-header-dir for clang

gcc needs to be able find system headers. Without this, gcc fails to build because
/usr/include is not available.

Note: stdenv.libc should be available for all stdenv's, I think.
wip/yesman
Matthew Bauer 8 years ago
parent f2e753a90c
commit cf004ae56e
No known key found for this signature in database
GPG Key ID: E04D0AD9469141C3
  1. 4
      pkgs/development/compilers/gcc/4.8/default.nix
  2. 4
      pkgs/development/compilers/gcc/4.9/default.nix
  3. 4
      pkgs/development/compilers/gcc/5/default.nix
  4. 4
      pkgs/development/compilers/gcc/6/default.nix

@ -357,8 +357,8 @@ stdenv.mkDerivation ({
)
)
}
${if (stdenv ? glibc && cross == null)
then " --with-native-system-header-dir=${stdenv.glibc.dev}/include"
${if cross == null
then " --with-native-system-header-dir=${getDev stdenv.libc}/include"
else ""}
${if langAda then " --enable-libada" else ""}
${if cross == null && stdenv.isi686 then "--with-arch=i686" else ""}

@ -364,8 +364,8 @@ stdenv.mkDerivation ({
)
)
}
${if (stdenv ? glibc && cross == null)
then " --with-native-system-header-dir=${stdenv.glibc.dev}/include"
${if cross == null
then " --with-native-system-header-dir=${getDev stdenv.libc}/include"
else ""}
${if langAda then " --enable-libada" else ""}
${if cross == null && stdenv.isi686 then "--with-arch=i686" else ""}

@ -362,8 +362,8 @@ stdenv.mkDerivation ({
)
)
}
${if (stdenv ? glibc && cross == null)
then " --with-native-system-header-dir=${stdenv.glibc.dev}/include"
${if cross == null
then " --with-native-system-header-dir=${getDev stdenv.libc}/include"
else ""}
${if langAda then " --enable-libada" else ""}
${if cross == null && stdenv.isi686 then "--with-arch=i686" else ""}

@ -360,8 +360,8 @@ stdenv.mkDerivation ({
)
)
}
${if (stdenv ? glibc && cross == null)
then " --with-native-system-header-dir=${stdenv.glibc.dev}/include"
${if cross == null
then " --with-native-system-header-dir=${getDev stdenv.libc}/include"
else ""}
${if langAda then " --enable-libada" else ""}
${if cross == null && stdenv.isi686 then "--with-arch=i686" else ""}

Loading…
Cancel
Save