From 8e2ef73e2f24691613aa908a769329eab352d20c Mon Sep 17 00:00:00 2001 From: Moritz Angermann Date: Thu, 24 Sep 2020 07:43:53 +0000 Subject: [PATCH] use custom ghc. --- .../ghc/ghc-prim-linux-extra-libraries.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 overlays/patches/ghc/ghc-prim-linux-extra-libraries.patch diff --git a/overlays/patches/ghc/ghc-prim-linux-extra-libraries.patch b/overlays/patches/ghc/ghc-prim-linux-extra-libraries.patch new file mode 100644 index 0000000000..b5ede27f96 --- /dev/null +++ b/overlays/patches/ghc/ghc-prim-linux-extra-libraries.patch @@ -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 \ No newline at end of file