GCC 4.5.2: Don't use the `install-strip' target, which wasn't available.

svn path=/nixpkgs/branches/stdenv-updates/; revision=26579
This commit is contained in:
Ludovic Courtès 2011-03-28 16:11:16 +00:00
parent 3e68d94b22
commit 312680ff50

View file

@ -260,11 +260,6 @@ stdenv.mkDerivation ({
targetConfig = if (cross != null) then cross.config else null; targetConfig = if (cross != null) then cross.config else null;
installTargets =
if stripped
then "install-strip"
else "install";
crossAttrs = { crossAttrs = {
AR = "${stdenv.cross.config}-ar"; AR = "${stdenv.cross.config}-ar";
LD = "${stdenv.cross.config}-ld"; LD = "${stdenv.cross.config}-ld";
@ -399,6 +394,8 @@ stdenv.mkDerivation ({
installTargets = "install-gcc install-target-libgcc"; installTargets = "install-gcc install-target-libgcc";
} }
# GCC 4.5.2 doesn't support the `install-strip' target, so let `stdenv' do
# the stripping by default.
// optionalAttrs (!stripped) { dontStrip = true; NIX_STRIP_DEBUG = false; } // optionalAttrs (!stripped) { dontStrip = true; NIX_STRIP_DEBUG = false; }
// optionalAttrs langVhdl rec { // optionalAttrs langVhdl rec {