Use install-strip when installing a stripped GCC 4.6

svn path=/nixpkgs/trunk/; revision=26652
This commit is contained in:
Shea Levy 2011-04-01 10:36:53 +00:00
parent 93d86b97f6
commit 2b3d751095

View File

@ -268,6 +268,11 @@ stdenv.mkDerivation ({
targetConfig = if (cross != null) then cross.config else null;
installTargets =
if stripped
then "install-strip"
else "install";
crossAttrs = {
AR = "${stdenv.cross.config}-ar";
LD = "${stdenv.cross.config}-ld";
@ -404,8 +409,6 @@ stdenv.mkDerivation ({
installTargets = "install-gcc install-target-libgcc";
}
# GCC 4.6.0 DOES support the `install-strip' target, but we'll let`stdenv' do
# the stripping by default to match stdenv-updates, for now
// optionalAttrs (!stripped) { dontStrip = true; NIX_STRIP_DEBUG = false; }
// optionalAttrs langVhdl rec {