3
0
Fork 0
forked from mirrors/nixpkgs

Trying to disable the references to the bootstrap-tools libgcc

svn path=/nixpkgs/branches/stdenv-updates/; revision=30022
This commit is contained in:
Lluís Batlle i Rossell 2011-10-25 18:35:17 +00:00
parent db31cf8287
commit 3fa51ac56a
2 changed files with 8 additions and 0 deletions

View file

@ -17,6 +17,10 @@ stdenv.mkDerivation (rec {
fi fi
''; '';
# As zlib takes part in the stdenv building, we don't want references
# to the bootstrap-tools libgcc (as uses to happen on arm/mips)
NIX_LDFLAGS = "-static-libgcc";
crossAttrs = { crossAttrs = {
dontStrip = if static then true else false; dontStrip = if static then true else false;
} // (if stdenv.cross.libc == "msvcrt" then { } // (if stdenv.cross.libc == "msvcrt" then {

View file

@ -53,6 +53,10 @@ stdenv.mkDerivation rec {
done done
''; '';
# As binutils takes part in the stdenv building, we don't want references
# to the bootstrap-tools libgcc (as uses to happen on arm/mips)
NIX_LDFLAGS = "-static-libgcc";
configureFlags = "--disable-werror" # needed for dietlibc build configureFlags = "--disable-werror" # needed for dietlibc build
+ stdenv.lib.optionalString (stdenv.system == "mips64-linux") + stdenv.lib.optionalString (stdenv.system == "mips64-linux")
" --enable-fix-loongson2f-nop" " --enable-fix-loongson2f-nop"