summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2020-05-14 08:10:43 +0800
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-06-07 08:46:42 -0400
commitb022051a50d30e39d86ee21e565e899e7e98255f (patch)
treee845b1029182d7a0d5320168e56e210b9174baa9 /libraries
parente372331b3212e5d8eddfa6f8d2c3840b7e95c2b3 (diff)
downloadhaskell-b022051a50d30e39d86ee21e565e899e7e98255f.tar.gz
ghc-prim needs to depend on libc and libm
libm is just an empty shell on musl, and all the math functions are contained in libc.
Diffstat (limited to 'libraries')
-rw-r--r--libraries/ghc-prim/ghc-prim.cabal5
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