Improving the crossStripping. A cross-glibc gets broken if stripped by the

native strip. So we now distinguish dontStrip and dontCrossStrip. I updated
the expressions for glibc-2.9 and glibc-2.11 accordingly.
I could get rid of the cross-glibc depending on the cross-gcc-stage-static.

Enabling nls in the final cross-gcc.

I still have problems on wint_t/wchar_t not working on cross build. Gettext
does not build.


svn path=/nixpkgs/branches/stdenv-updates/; revision=18562
This commit is contained in:
Lluís Batlle i Rossell
2009-11-23 17:06:57 +00:00
parent 75b60caea0
commit c6b526495b
5 changed files with 15 additions and 6 deletions

View File

@@ -44,6 +44,8 @@ EOF
export CC="$crossConfig-gcc"
export AR="$crossConfig-ar"
export RANLIB="$crossConfig-ranlib"
dontStrip = 1
'';
}
else {}))

View File

@@ -48,6 +48,9 @@ EOF
export AR="${crossConfig}-ar"
export RANLIB="${crossConfig}-ranlib"
configureFlags="${configureFlags} --cache-file=config.cache"
# Disable the native stripping, because it breaks libc_nonshared.a
dontStrip=1
fi
}

View File

@@ -80,14 +80,14 @@ stdenv.mkDerivation rec {
buildNativeInputs = stdenv.lib.optionals (cross != null) [ gccCross ];
preInstall = ''
preInstall = if (cross != null) then ''
ensureDir $out/lib
ln -s ${stdenv.gcc.gcc}/lib/libgcc_s.so.1 $out/lib/libgcc_s.so.1
'';
'' else "";
postInstall = ''
postInstall = if (cross != null) then ''
rm $out/lib/libgcc_s.so.1
'';
'' else "";
# Workaround for this bug:
# http://sourceware.org/bugzilla/show_bug.cgi?id=411