gnu: opendht: Update to 2.2.0rc4.
[jackhill/guix/guix.git] / gnu / packages / patches / xmonad-dynamic-linking.patch
CommitLineData
57983029
TS
1This patch is required for xmonad to make use of shared libraries.
2Without it, xmonad will not work since we do not (by default) use
3statically linked Haskell libraries.
4
5diff -ruN xmonad-0.15-a/src/XMonad/Core.hs xmonad-0.15-b/src/XMonad/Core.hs
6--- xmonad-0.15-a/src/XMonad/Core.hs 1969-12-31 19:00:00.000000000 -0500
7+++ xmonad-0.15-b/src/XMonad/Core.hs 1969-12-31 19:00:00.000000000 -0500
8@@ -681,6 +681,8 @@
9 compileGHC bin dir errHandle =
10 runProcess "ghc" ["--make"
11 , "xmonad.hs"
12+ , "-dynamic"
13+ , "-fPIC"
14 , "-i"
15 , "-ilib"
16 , "-fforce-recomp"