On native builds:
- Disabling guile test, because one fails. I commented on that in the source. On cross builds: - Adding stripping - Updating the glibc-2.11 expression to match the parameters of glibc-2.9, which I was updating more. - Renaming from selfNativeBuildInput to selfBuildNativeInput, so this matches better the pattern buildNativeInputs. svn path=/nixpkgs/branches/stdenv-updates/; revision=18550
This commit is contained in:
@@ -61,8 +61,6 @@ stdenv.mkDerivation ({
|
||||
then "--enable-profile"
|
||||
else "--disable-profile")
|
||||
] ++ stdenv.lib.optionals (cross != null) [
|
||||
"--host=${cross.config}"
|
||||
"--build=${stdenv.system}"
|
||||
"--with-tls"
|
||||
"--enable-kernel=2.6.0"
|
||||
"--without-fp"
|
||||
@@ -101,7 +99,8 @@ stdenv.mkDerivation ({
|
||||
//
|
||||
|
||||
{
|
||||
name = args.name + "-${version}";
|
||||
name = args.name + "-${version}" +
|
||||
stdenv.lib.optionalString (cross != null) "-${cross.config}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/glibc/glibc-${version}.tar.bz2";
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
{ stdenv, fetchurl, kernelHeaders
|
||||
, installLocales ? true
|
||||
, profilingLibraries ? false
|
||||
, cross ? null
|
||||
, gccCross ? null
|
||||
}:
|
||||
|
||||
let build = import ./common.nix;
|
||||
let
|
||||
build = import ./common.nix;
|
||||
cross = if gccCross != null then gccCross.target else null;
|
||||
in
|
||||
build ({
|
||||
name = "glibc" +
|
||||
stdenv.lib.optionalString (cross != null) "-${cross.config}";
|
||||
name = "glibc";
|
||||
|
||||
inherit fetchurl stdenv kernelHeaders installLocales profilingLibraries
|
||||
cross gccCross;
|
||||
cross;
|
||||
|
||||
builder = ./builder.sh;
|
||||
|
||||
@@ -44,10 +44,6 @@ EOF
|
||||
export CC="$crossConfig-gcc"
|
||||
export AR="$crossConfig-ar"
|
||||
export RANLIB="$crossConfig-ranlib"
|
||||
|
||||
# The host strip will destroy everything in the target binaries
|
||||
# otherwise.
|
||||
dontStrip=1
|
||||
'';
|
||||
}
|
||||
else {}))
|
||||
|
||||
@@ -48,9 +48,6 @@ EOF
|
||||
export AR="${crossConfig}-ar"
|
||||
export RANLIB="${crossConfig}-ranlib"
|
||||
configureFlags="${configureFlags} --cache-file=config.cache"
|
||||
|
||||
# The host stripp will destroy everything in the target binaries otherwise
|
||||
dontStrip=1
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
||||
${if unicode then "--enable-widec" else ""}
|
||||
'';
|
||||
|
||||
selfNativeBuildInput = true;
|
||||
selfBuildNativeInput = true;
|
||||
|
||||
preBuild = ''sed -e "s@\([[:space:]]\)sh @\1''${SHELL} @" -i */Makefile Makefile'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user