gcc 4.7: don't pass `--with-native-system-header-dir' when cross-compiling
This commit is contained in:
parent
cd30b83fd8
commit
1ac274784b
@ -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
|
${ # 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 cross == null && stdenv.system == "mips64el-linux" then "--with-arch=loongson2f" else ""}
|
||||||
${if langAda then " --enable-libada" else ""}
|
${if langAda then " --enable-libada" else ""}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user