aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-08-12 20:06:51 +0200
committerTeddy Wing2017-08-12 20:06:51 +0200
commit5c8cdafb1ccfe2355f068a2620cd5c9b250fdb88 (patch)
treed2fb0a27189d4f8ca5ecc717c0584570741eb1d7
parent59d7bdb0d4252288c600a0e97ed15a3494a9d1ee (diff)
downloadsorbot-5c8cdafb1ccfe2355f068a2620cd5c9b250fdb88.tar.bz2
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.
-rw-r--r--stack.yaml5
1 files changed, 4 insertions, 1 deletions
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: []