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.
This commit is contained in:
Matthew Bauer 2016-09-06 13:54:13 -05:00
parent f2e753a90c
commit cf004ae56e
No known key found for this signature in database
GPG Key ID: E04D0AD9469141C3
4 changed files with 8 additions and 8 deletions

@ -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 ""}