Merge remote-tracking branch 'origin/master' into stdenv-updates.
gmp: update to version 5.1.3
gfortan: remove unused versions, use 4.7 by default

4.8 still doesn't build, so let's use 4.7 in the meantime.
gcc: don't use profiling on darwin

Darwin seems to have problems on Hydra, maybe because of this.
pcre: disable tests for freeBSDs, as we're running out of stack
gnutar: update to version 1.27
vigra: fix build with newer gcc via update

This fixes libreoffice build on my machine.
inkscape: remove unused patch
inkscape: fix typo in upstream sources.

fixes stdenv-updates
zsnes: patches for modern gcc & libpng

builds fine on stdenv-updates now
needs gcc 4.8+, so keep this commit on stdenv-updates until merge
wine: doesn't build with bison3
gnutar: drop obsolete gets-undeclared.patch
ghc: configure RPATH that allows ghc's shared libraries to find each other

Prior to this patch, libHSrts.so didn't know how to load libffi.so.
See issue #1081 for further details.
isl: update download url

This patch fixes issue #1091.
Merge branch 'origin/master' into stdenv-updates.

There was a minor conflict in 'stumpwm'. The package needs texinfo
version 4.x. At least is used to, I'm not sure whether it still does.
Merge remote-tracking branch 'origin/master' into stdenv-updates.
build-support/cabal: add an option to enable shared library support

enableSharedLibraries configures Cabal to build of shared libraries. This
option requires that all dependencies of the package have been compiled
for use in shared libraries, too.

enableSharedExecutables configures Cabal to prefer shared libraries when
linking executables.

This patch partly fixes issue #1084.
gcc: update to 4.8.x branch to 4.8.2
pkgs/build-support/cabal: move current postFixup hook into installPhase to free up the postFixup hook for users to override

Builds tend to override pre and post hooks for each phase, so we should not use
them to perform regular build commands that cannot be omitted.
pkgs/build-support/cabal: stabilize shared linking support

We cannot pass the --{enable,disable}-executable-dynamic flags to GHC
versions prior to 7.4.x.

Building shared libraries via --{enable,disable}-shared is possible in theory
with GHC 6.12.x or later, but doesn't work in practice because our GHC 6.10.x
builds don't provide shared versions of their base libraries. This could
probably be fixed, but it's probably not worth the effort.