This patch is required for xmonad to make use of shared libraries. Without it, xmonad will not work since we do not (by default) use statically linked Haskell libraries. diff -Naur xmonad-0.17.0.orig/src/XMonad/Core.hs xmonad-0.17.0/src/XMonad/Core.hs --- xmonad-0.17.0.orig/src/XMonad/Core.hs 2001-09-09 03:46:40.000000000 +0200 +++ xmonad-0.17.0/src/XMonad/Core.hs 2021-11-13 10:40:17.840524866 +0100 @@ -664,6 +664,8 @@ where ghcArgs = [ "--make" , "xmonad.hs" + , "-dynamic" + , "-fPIC" , "-i" -- only look in @lib@ , "-ilib" , "-fforce-recomp"