Merge commit '51948eab9415fde1825dea5c7d31b99b2e1a0fdb' into mingw32-w64-fix
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
|
||||
, stripped ? true
|
||||
, buildPlatform, hostPlatform, targetPlatform
|
||||
, buildPackages
|
||||
}:
|
||||
|
||||
assert langJava -> zip != null && unzip != null
|
||||
@@ -275,7 +276,7 @@ stdenv.mkDerivation ({
|
||||
)
|
||||
}
|
||||
${optionalString (!(crossMingw && crossStageStatic))
|
||||
"--with-native-system-header-dir=${getDev (stdenv.ccCross or stdenv.cc).libc}/include"}
|
||||
"--with-native-system-header-dir=${getDev stdenv.cc.libc}/include"}
|
||||
${ # Trick that should be taken out once we have a mips64el-linux not loongson2f
|
||||
if targetPlatform == hostPlatform && stdenv.system == "mips64el-linux" then "--with-arch=loongson2f" else ""}
|
||||
${if langAda then " --enable-libada" else ""}
|
||||
@@ -331,8 +332,7 @@ stdenv.mkDerivation ({
|
||||
dontStrip = true;
|
||||
};
|
||||
|
||||
NIX_BUILD_CC = stdenv.cc;
|
||||
NIX_CC_CROSS = stdenv.ccCross or null;
|
||||
NIX_BUILD_CC = buildPackages.stdenv.cc;
|
||||
|
||||
# Needed for the cross compilation to work
|
||||
AR = "ar";
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
, gnused ? null
|
||||
, darwin ? null
|
||||
, buildPlatform, hostPlatform, targetPlatform
|
||||
, buildPackages
|
||||
}:
|
||||
|
||||
assert langJava -> zip != null && unzip != null
|
||||
@@ -335,7 +336,7 @@ stdenv.mkDerivation ({
|
||||
)
|
||||
}
|
||||
${optionalString (!(crossMingw && crossStageStatic))
|
||||
"--with-native-system-header-dir=${getDev (stdenv.ccCross or stdenv.cc).libc}/include"}
|
||||
"--with-native-system-header-dir=${getDev stdenv.cc.libc}/include"}
|
||||
${if langAda then " --enable-libada" else ""}
|
||||
${if targetPlatform == hostPlatform && targetPlatform.isi686 then "--with-arch=i686" else ""}
|
||||
${if targetPlatform != hostPlatform then crossConfigureFlags else ""}
|
||||
@@ -400,8 +401,7 @@ stdenv.mkDerivation ({
|
||||
buildFlags = "";
|
||||
};
|
||||
|
||||
NIX_BUILD_CC = stdenv.cc;
|
||||
NIX_CC_CROSS = stdenv.ccCross or null;
|
||||
NIX_BUILD_CC = buildPackages.stdenv.cc;
|
||||
|
||||
# Needed for the cross compilation to work
|
||||
AR = "ar";
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
, gnused ? null
|
||||
, darwin ? null
|
||||
, buildPlatform, hostPlatform, targetPlatform
|
||||
, buildPackages
|
||||
}:
|
||||
|
||||
assert langJava -> zip != null && unzip != null
|
||||
@@ -341,7 +342,7 @@ stdenv.mkDerivation ({
|
||||
)
|
||||
}
|
||||
${optionalString (!(crossMingw && crossStageStatic))
|
||||
"--with-native-system-header-dir=${getDev (stdenv.ccCross or stdenv.cc).libc}/include"}
|
||||
"--with-native-system-header-dir=${getDev stdenv.cc.libc}/include"}
|
||||
${if langAda then " --enable-libada" else ""}
|
||||
${if targetPlatform == hostPlatform && targetPlatform.isi686 then "--with-arch=i686" else ""}
|
||||
${if targetPlatform != hostPlatform then crossConfigureFlags else ""}
|
||||
@@ -406,8 +407,7 @@ stdenv.mkDerivation ({
|
||||
buildFlags = "";
|
||||
};
|
||||
|
||||
NIX_BUILD_CC = stdenv.cc;
|
||||
NIX_CC_CROSS = stdenv.ccCross or null;
|
||||
NIX_BUILD_CC = buildPackages.stdenv.cc;
|
||||
|
||||
# Needed for the cross compilation to work
|
||||
AR = "ar";
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
, cloog # unused; just for compat with gcc4, as we override the parameter on some places
|
||||
, darwin ? null
|
||||
, buildPlatform, hostPlatform, targetPlatform
|
||||
, buildPackages
|
||||
}:
|
||||
|
||||
assert langJava -> zip != null && unzip != null
|
||||
@@ -356,7 +357,7 @@ stdenv.mkDerivation ({
|
||||
)
|
||||
}
|
||||
${optionalString (!(crossMingw && crossStageStatic))
|
||||
"--with-native-system-header-dir=${getDev (stdenv.ccCross or stdenv.cc).libc}/include"}
|
||||
"--with-native-system-header-dir=${getDev stdenv.cc.libc}/include"}
|
||||
${if langAda then " --enable-libada" else ""}
|
||||
${if targetPlatform == hostPlatform && targetPlatform.isi686 then "--with-arch=i686" else ""}
|
||||
${if targetPlatform != hostPlatform then crossConfigureFlags else ""}
|
||||
@@ -364,7 +365,11 @@ stdenv.mkDerivation ({
|
||||
${if targetPlatform == hostPlatform then platformFlags else ""}
|
||||
" + optionalString
|
||||
(hostPlatform != buildPlatform)
|
||||
(platformFlags + " --target=${targetPlatform.config}");
|
||||
(platformFlags + ''
|
||||
--build=${buildPlatform.config}
|
||||
--host=${hostPlatform.config}
|
||||
--target=${targetPlatform.config}
|
||||
'');
|
||||
|
||||
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
|
||||
|
||||
@@ -421,8 +426,7 @@ stdenv.mkDerivation ({
|
||||
buildFlags = "";
|
||||
};
|
||||
|
||||
NIX_BUILD_CC = stdenv.cc;
|
||||
NIX_CC_CROSS = stdenv.ccCross or null;
|
||||
NIX_BUILD_CC = buildPackages.stdenv.cc;
|
||||
|
||||
# Needed for the cross compilation to work
|
||||
AR = "ar";
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
, cloog # unused; just for compat with gcc4, as we override the parameter on some places
|
||||
, darwin ? null
|
||||
, buildPlatform, hostPlatform, targetPlatform
|
||||
, buildPackages
|
||||
}:
|
||||
|
||||
assert langJava -> zip != null && unzip != null
|
||||
@@ -338,7 +339,7 @@ stdenv.mkDerivation ({
|
||||
)
|
||||
}
|
||||
${optionalString (!(crossMingw && crossStageStatic))
|
||||
"--with-native-system-header-dir=${getDev (stdenv.ccCross or stdenv.cc).libc}/include"}
|
||||
"--with-native-system-header-dir=${getDev stdenv.cc.libc}/include"}
|
||||
${if langAda then " --enable-libada" else ""}
|
||||
${if targetPlatform == hostPlatform && targetPlatform.isi686 then "--with-arch=i686" else ""}
|
||||
${if targetPlatform != hostPlatform then crossConfigureFlags else ""}
|
||||
@@ -403,8 +404,7 @@ stdenv.mkDerivation ({
|
||||
buildFlags = "";
|
||||
};
|
||||
|
||||
NIX_BUILD_CC = stdenv.cc;
|
||||
NIX_CC_CROSS = stdenv.ccCross or null;
|
||||
NIX_BUILD_CC = buildPackages.stdenv.cc;
|
||||
|
||||
# Needed for the cross compilation to work
|
||||
AR = "ar";
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
, darwin ? null
|
||||
, flex ? null
|
||||
, buildPlatform, hostPlatform, targetPlatform
|
||||
, buildPackages
|
||||
}:
|
||||
|
||||
assert langJava -> zip != null && unzip != null
|
||||
@@ -339,7 +340,7 @@ stdenv.mkDerivation ({
|
||||
)
|
||||
}
|
||||
${optionalString (!(crossMingw && crossStageStatic))
|
||||
"--with-native-system-header-dir=${getDev (stdenv.ccCross or stdenv.cc).libc}/include"}
|
||||
"--with-native-system-header-dir=${getDev stdenv.cc.libc}/include"}
|
||||
${if langAda then " --enable-libada" else ""}
|
||||
${if targetPlatform == hostPlatform && targetPlatform.isi686 then "--with-arch=i686" else ""}
|
||||
${if targetPlatform != hostPlatform then crossConfigureFlags else ""}
|
||||
@@ -404,8 +405,7 @@ stdenv.mkDerivation ({
|
||||
buildFlags = "";
|
||||
};
|
||||
|
||||
NIX_BUILD_CC = stdenv.cc;
|
||||
NIX_CC_CROSS = stdenv.ccCross or null;
|
||||
NIX_BUILD_CC = buildPackages.stdenv.cc;
|
||||
|
||||
# Needed for the cross compilation to work
|
||||
AR = "ar";
|
||||
|
||||
@@ -5,11 +5,6 @@ oldOpts="$(shopt -po nounset)" || true
|
||||
set -euo pipefail
|
||||
|
||||
|
||||
if test -n "${NIX_CC_CROSS-}"; then
|
||||
export NIX_CC="$NIX_CC_CROSS"
|
||||
fi
|
||||
|
||||
|
||||
export NIX_FIXINC_DUMMY="$NIX_BUILD_TOP/dummy"
|
||||
mkdir "$NIX_FIXINC_DUMMY"
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
, darwin ? null
|
||||
, flex ? null
|
||||
, buildPlatform, hostPlatform, targetPlatform
|
||||
, buildPackages
|
||||
}:
|
||||
|
||||
assert langJava -> zip != null && unzip != null
|
||||
@@ -339,7 +340,7 @@ stdenv.mkDerivation ({
|
||||
)
|
||||
}
|
||||
${optionalString (!(crossMingw && crossStageStatic))
|
||||
"--with-native-system-header-dir=${getDev (stdenv.ccCross or stdenv.cc).libc}/include"}
|
||||
"--with-native-system-header-dir=${getDev stdenv.cc.libc}/include"}
|
||||
${if langAda then " --enable-libada" else ""}
|
||||
${if targetPlatform == hostPlatform && targetPlatform.isi686 then "--with-arch=i686" else ""}
|
||||
${if targetPlatform != hostPlatform then crossConfigureFlags else ""}
|
||||
@@ -404,8 +405,7 @@ stdenv.mkDerivation ({
|
||||
buildFlags = "";
|
||||
};
|
||||
|
||||
NIX_BUILD_CC = stdenv.cc;
|
||||
NIX_CC_CROSS = stdenv.ccCross or null;
|
||||
NIX_BUILD_CC = buildPackages.stdenv.cc;
|
||||
|
||||
# Needed for the cross compilation to work
|
||||
AR = "ar";
|
||||
|
||||
Reference in New Issue
Block a user