summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc/8.2.2.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-06-16 10:13:38 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2018-06-20 22:03:59 -0400
commit9e4aebdd7b6d704b7fceb098e284be98e38a5392 (patch)
treec1c22c7192c370d7379900bc1035c8a798fb244d /pkgs/development/compilers/ghc/8.2.2.nix
parent17621f63eb1c257e84490a825c1e9a212e0826af (diff)
downloadnixpkgs-9e4aebdd7b6d704b7fceb098e284be98e38a5392.tar
nixpkgs-9e4aebdd7b6d704b7fceb098e284be98e38a5392.tar.gz
nixpkgs-9e4aebdd7b6d704b7fceb098e284be98e38a5392.tar.bz2
nixpkgs-9e4aebdd7b6d704b7fceb098e284be98e38a5392.tar.lz
nixpkgs-9e4aebdd7b6d704b7fceb098e284be98e38a5392.tar.xz
nixpkgs-9e4aebdd7b6d704b7fceb098e284be98e38a5392.tar.zst
nixpkgs-9e4aebdd7b6d704b7fceb098e284be98e38a5392.zip
ghc8.4: add android triple
The triple is needed for armv7a-android-prebuilt to work (partly) with
GHC.

- also set EXTRA_CC_OPTS for ghc8.2
Diffstat (limited to 'pkgs/development/compilers/ghc/8.2.2.nix')
-rw-r--r--pkgs/development/compilers/ghc/8.2.2.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ghc/8.2.2.nix b/pkgs/development/compilers/ghc/8.2.2.nix
index 4e9eff06f26..5f0818a017d 100644
--- a/pkgs/development/compilers/ghc/8.2.2.nix
+++ b/pkgs/development/compilers/ghc/8.2.2.nix
@@ -58,6 +58,8 @@ let
   '' + stdenv.lib.optionalString enableRelocatedStaticLibs ''
     GhcLibHcOpts += -fPIC
     GhcRtsHcOpts += -fPIC
+  '' + stdenv.lib.optionalString targetPlatform.useAndroidPrebuilt ''
+    EXTRA_CC_OPTS += -std=gnu99
   '';
 
   # Splicer will pull out correct variations