gcc 4.7: don't pass `--with-native-system-header-dir' when cross-compiling

This commit is contained in:
Ludovic Courtès 2012-11-29 10:58:31 +01:00
parent cd30b83fd8
commit 1ac274784b

View File

@ -288,7 +288,9 @@ stdenv.mkDerivation ({
)
)
}
${if (stdenv ? glibc) then " --with-native-system-header-dir=${stdenv.glibc}/include" else ""}
${if (stdenv ? glibc && cross == null)
then " --with-native-system-header-dir=${stdenv.glibc}/include"
else ""}
${ # Trick that should be taken out once we have a mips64el-linux not loongson2f
if cross == null && stdenv.system == "mips64el-linux" then "--with-arch=loongson2f" else ""}
${if langAda then " --enable-libada" else ""}