git.iko.soy/typeable/entropy
on main help sign in
Bump for issue #27

Notice the undef issue shouldn't come up - for known compilers `-O2` should result in the inlining necessary. I had though GHC passed a sufficient -O flag to cc, but am suspicious now, so added manual -O2 via the cc-flags.

commit7ddf59101e581848958d551045c4c59f7eb8c7cb authorThomas M. DuBuisson <tommd@galois.com> dateMon 15 Jun 2015, 13:44 (11 years ago) parentfc88376
1 file changed+3−3
entropy.cabal+3−3
entropy.cabal+3−3
@@ -1,5 +1,5 @@
11name: entropy
2−version: 0.3.6
2+version: 0.3.7
33description: A platform independent method to obtain cryptographically strong entropy
44 (RDRAND when available anywhere, urandom on nix, CryptAPI on Windows, patches welcome)
55 Users looking for cryptographically strong (number-theoretically
@@ -49,13 +49,13 @@ library
4949 cc-options: -DXEN -DHAVE_RDRAND
5050 if arch(x86_64)
5151 cpp-options: -Darch_x86_64
52− cc-options: -Darch_x86_64
52+ cc-options: -Darch_x86_64 -O2
5353 -- gcc 4.8.2 on i386 fails to compile rdrand.c when using -fPIC!
5454 c-sources: cbits/rdrand.c
5555 include-dirs: cbits
5656 if arch(i386)
5757 cpp-options: -Darch_i386
58− cc-options: -Darch_i386
58+ cc-options: -Darch_i386 -O2
5959 if os(windows)
6060 cpp-options: -DisWindows
6161 cc-options: -DisWindows