From 5c8cdafb1ccfe2355f068a2620cd5c9b250fdb88 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 12 Aug 2017 20:06:51 +0200 Subject: stack.yaml: Turn off `-support_aesni` when compiling 'cryptonite' The 'irc-client' package depends on 'cryptonite'. I was getting this compilation error from 'cryptonite' on my machine: [111 of 111] Compiling Crypto.Cipher.AES ( Crypto/Cipher/AES.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Crypto/Cipher/AES.o ) cc1: error: unrecognized command line option "-maes" `gcc' failed in phase `C Compiler'. (Exit code: 1) The package recommends disabling AESNI via a compile flag to get around this error (https://github.com/haskell-crypto/cryptonite#known-building-issues): cabal configure --flag='-support_aesni' Add 'cryptonite' to our `extra-deps` in order to be able to set a flag on it. Turn off the `-support_aesni` flag in order to facilitate compilation. --- stack.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'stack.yaml') diff --git a/stack.yaml b/stack.yaml index 27a17ad..4e2fdf3 100644 --- a/stack.yaml +++ b/stack.yaml @@ -40,6 +40,7 @@ packages: # Dependency packages to be pulled from upstream that are not in the resolver # (e.g., acme-missiles-0.3) extra-deps: +- cryptonite-0.21 - dbmigrations-2.0.0 - dbmigrations-sqlite-2.0.0 - HDBC-sqlite3-2.3.3.1 @@ -47,7 +48,9 @@ extra-deps: - yaml-light-0.1.4 # Override default flag values for local packages and extra-deps -flags: {} +flags: + cryptonite: + support_aesni: false # Extra package databases containing global packages extra-package-dbs: [] -- cgit v1.2.3