GCC 4.5: Fix cross-compilation to MinGW.

svn path=/nixpkgs/trunk/; revision=30522
This commit is contained in:
Ludovic Courtès 2011-11-22 08:45:25 +00:00
parent 67653f93fa
commit ea96ea5d2f
1 changed files with 1 additions and 0 deletions

View File

@ -148,6 +148,7 @@ stdenv.mkDerivation ({
postPatch =
if (stdenv.system == "i586-pc-gnu"
|| (libcCross != null # e.g., building `gcc.hostDrv'
&& libcCross ? crossConfig
&& libcCross.crossConfig == "i586-pc-gnu")
|| (cross != null && cross.config == "i586-pc-gnu"
&& libcCross != null))