diff options
-rw-r--r-- | libraries/ghc-prim/ghc-prim.cabal | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libraries/ghc-prim/ghc-prim.cabal b/libraries/ghc-prim/ghc-prim.cabal index 607f24df99..4ac3054b05 100644 --- a/libraries/ghc-prim/ghc-prim.cabal +++ b/libraries/ghc-prim/ghc-prim.cabal @@ -68,6 +68,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 |