Fixing the gcc-4.5 cross-build (the native strip destroys the .a cross-built

archives, so we disable it cross building)

svn path=/nixpkgs/branches/stdenv-updates/; revision=22854
This commit is contained in:
Lluís Batlle i Rossell 2010-08-01 21:27:03 +00:00
parent 4b79027f45
commit 0f4673788e

View file

@ -238,6 +238,7 @@ stdenv.mkDerivation ({
CXX_FOR_TARGET = "${stdenv.cross.config}-g++";
# If we are making a cross compiler, cross != null
NIX_GCC_CROSS = if cross == null then "${stdenv.gccCross}" else "";
dontStrip = true;
configureFlags = "
${if enableMultilib then "" else "--disable-multilib"}
${if enableShared then "" else "--disable-shared"}