gcc5: set --build and --host in the case where those differ and make sure to have a build cc-wrapper around as well
This commit is contained in:
parent
7c754b1e3b
commit
198dceccbe
@ -35,6 +35,7 @@
|
|||||||
, cloog # unused; just for compat with gcc4, as we override the parameter on some places
|
, cloog # unused; just for compat with gcc4, as we override the parameter on some places
|
||||||
, darwin ? null
|
, darwin ? null
|
||||||
, buildPlatform, hostPlatform, targetPlatform
|
, buildPlatform, hostPlatform, targetPlatform
|
||||||
|
, buildPackages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert langJava -> zip != null && unzip != null
|
assert langJava -> zip != null && unzip != null
|
||||||
@ -312,6 +313,7 @@ stdenv.mkDerivation ({
|
|||||||
++ (optionals langJava [ boehmgc zip unzip ])
|
++ (optionals langJava [ boehmgc zip unzip ])
|
||||||
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
|
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
|
||||||
++ (optionals (targetPlatform != hostPlatform) [binutils])
|
++ (optionals (targetPlatform != hostPlatform) [binutils])
|
||||||
|
++ (optionals (buildPlatform != hostPlatform) [buildPackages.stdenv.cc])
|
||||||
++ (optionals langAda [gnatboot])
|
++ (optionals langAda [gnatboot])
|
||||||
++ (optionals langVhdl [gnat])
|
++ (optionals langVhdl [gnat])
|
||||||
|
|
||||||
@ -449,6 +451,8 @@ stdenv.mkDerivation ({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
${if langAda then " --enable-libada" else ""}
|
${if langAda then " --enable-libada" else ""}
|
||||||
|
--build=${buildPlatform.config}
|
||||||
|
--host=${hostPlatform.config}
|
||||||
--target=${targetPlatform.config}
|
--target=${targetPlatform.config}
|
||||||
${xwithArch}
|
${xwithArch}
|
||||||
${xwithCpu}
|
${xwithCpu}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user