Skip to content

Commit

Permalink
use custom ghc.
Browse files Browse the repository at this point in the history
  • Loading branch information
angerman committed Dec 27, 2021
1 parent 969d630 commit 8e2ef73
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions overlays/patches/ghc/ghc-prim-linux-extra-libraries.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/libraries/ghc-prim/ghc-prim.cabal b/libraries/ghc-prim/ghc-prim.cabal
index a95f1ecaa8..4866490899 100644
--- a/libraries/ghc-prim/ghc-prim.cabal
+++ b/libraries/ghc-prim/ghc-prim.cabal
@@ -66,6 +66,11 @@ Library
-- on Windows. Required because of mingw32.
extra-libraries: user32, mingw32, mingwex

+ if os(linux)
+ -- we need libm, but for musl and other's we might need libc, as libm
+ -- is just an empty shell.
+ extra-libraries: c, m
+
c-sources:
cbits/atomic.c
cbits/bswap.c

0 comments on commit 8e2ef73

Please sign in to comment.