dev-haskell/cryptonite: pass -msse2 for blake2, bug #696220
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 13 Oct 2019 14:12:41 +0000 (15:12 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 13 Oct 2019 14:12:55 +0000 (15:12 +0100)
commit7d6567635185b785cd4e0c2763d4707402e3beb5
treed7d55181f2547181169bd1f42854031424a612f8
parenteb9d69048fec2bcfb5cc475b354cf6061a876e94
dev-haskell/cryptonite: pass -msse2 for blake2, bug #696220

Fixed two problems here:
- blake2 code assumes SSE2, not just SSE
- x86 needs -msse2 to be passed explicitly (as opposed to amd64)

Otherwise compiler does not attempt to emit sse2 primitives
and build fails as:
```
cbits/blake2/sse/blake2-config.h:68:2: error:
     error: #error "This code requires at least SSE2."
     #error "This code requires at least SSE2."
      ^~~~~
```

Reported-by: Thomas Kahle
Closes: https://bugs.gentoo.org/696220
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
dev-haskell/cryptonite/cryptonite-0.21.ebuild
dev-haskell/cryptonite/files/cryptonite-0.21-sse2.patch [new file with mode: 0644]