ghc-7.8.3-prim-lm.patch 444 B

12345678910111213
  1. Fix underlinking on ghc-prim.
  2. Fixes ghc-stage2 crahs on hardened toolchain.
  3. Reported-by: aranea
  4. diff --git a/libraries/ghc-prim/ghc-prim.cabal b/libraries/ghc-prim/ghc-prim.cabal
  5. index ffb32af..0431380 100644
  6. --- a/libraries/ghc-prim/ghc-prim.cabal
  7. +++ b/libraries/ghc-prim/ghc-prim.cabal
  8. @@ -68,0 +68,4 @@ Library
  9. +
  10. + -- ghc 'sin' (and other) primops generate 'libm' calls,
  11. + -- but ghc itself does not add '-lm'
  12. + extra-libraries: m