summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc/7.2.2.nix
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2014-05-30 23:10:19 +0200
committerVladimír Čunát <vcunat@gmail.com>2014-05-30 23:10:19 +0200
commit628ac8b0871553eb9a693ae163f6656739a7fbe2 (patch)
treea3f941aede9a89738ae742bcfcd08bfa57cf43a4 /pkgs/development/compilers/ghc/7.2.2.nix
parentf6f95c94e4ea682b8bea6c36041a5fccfcee7e1c (diff)
downloadnixlib-628ac8b0871553eb9a693ae163f6656739a7fbe2.tar
nixlib-628ac8b0871553eb9a693ae163f6656739a7fbe2.tar.gz
nixlib-628ac8b0871553eb9a693ae163f6656739a7fbe2.tar.bz2
nixlib-628ac8b0871553eb9a693ae163f6656739a7fbe2.tar.lz
nixlib-628ac8b0871553eb9a693ae163f6656739a7fbe2.tar.xz
nixlib-628ac8b0871553eb9a693ae163f6656739a7fbe2.tar.zst
nixlib-628ac8b0871553eb9a693ae163f6656739a7fbe2.zip
older GHCs: fix build after gcc-4.8.3 bump
Getting "frame pointer required, but reserved" while compiling runtime.
Thanks to @jwiegley for suggestion of the work-around.
Diffstat (limited to 'pkgs/development/compilers/ghc/7.2.2.nix')
-rw-r--r--pkgs/development/compilers/ghc/7.2.2.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ghc/7.2.2.nix b/pkgs/development/compilers/ghc/7.2.2.nix
index c6ec0cb75c4d..7e714ae3b789 100644
--- a/pkgs/development/compilers/ghc/7.2.2.nix
+++ b/pkgs/development/compilers/ghc/7.2.2.nix
@@ -25,6 +25,8 @@ stdenv.mkDerivation rec {
     "--with-gcc=${stdenv.gcc}/bin/gcc"
   ];
 
+  NIX_CFLAGS_COMPILE = "-fomit-frame-pointer";
+
   # required, because otherwise all symbols from HSffi.o are stripped, and
   # that in turn causes GHCi to abort
   stripDebugFlags=["-S" "--keep-file-symbols"];