@@ -1,9 +1,9 @@
11name: entropy
2−version: 0.3
2+version: 0.3.1
33description: A platform independent method to obtain cryptographically strong entropy
4− (urandom on Linux, CryptAPI on Windows, patches welcome).
4+ (RDRAND when available anywhere, urandom on nix, CryptAPI on Windows, patches welcome).
55 Users looking for cryptographically strong (number-theoretically
6− sound) PRNGs should see the 'DRBG' package too!
6+ sound) PRNGs should see the 'DRBG' package too.
77synopsis: A platform independent entropy source
88license: BSD3
99license-file: LICENSE
@@ -19,7 +19,7 @@ stability: stable
1919build-type: Custom
2020-- ^^ Test for RDRAND support using 'ghc'
2121cabal-version: >=1.10
22−tested-with: GHC == 7.6.3
22+tested-with: GHC == 7.8.2
2323-- data-files:
2424extra-source-files: ./cbits/rdrand.c, ./cbits/rdrand.h, README.md
2525
@@ -29,6 +29,7 @@ extra-source-files: ./cbits/rdrand.c, ./cbits/rdrand.h, README.md
2929flag halvm
3030 description: Build for the HaLVM
3131 default: False
32+
3233library
3334 ghc-options: -O2
3435 exposed-modules: System.Entropy
@@ -41,16 +42,20 @@ library
4142 default-language: Haskell2010
4243 if(flag(halvm))
4344 cpp-options: -DXEN -DHAVE_RDRAND
45+ cc-options: -DXEN -DHAVE_RDRAND
4446 if arch(x86_64)
4547 cpp-options: -Darch_x86_64
48+ -- gcc 4.8.2 on i386 fails to compile rdrand.c when using -fPIC!
49+ c-sources: cbits/rdrand.c
50+ include-dirs: cbits
51+ if arch(i386)
52+ cpp-options: -Darch_i386
4653 if os(windows)
4754 cpp-options: -DisWindows
4855 extra-libraries: advapi32
4956 else
5057 if !flag(halvm)
5158 Build-Depends: unix
52− c-sources: cbits/rdrand.c
53− include-dirs: cbits
5459
5560source-repository head
5661 type: git