summaryrefslogtreecommitdiffstats
path: root/desktop/xmonad/xmonad.SlackBuild
diff options
context:
space:
mode:
author Mikko Värri2012-06-27 22:25:01 +0200
committer dsomero2012-06-27 22:25:01 +0200
commitbffbaabf9cb5353f073f22b42872088e59cc0e23 (patch)
tree733938918551ad6ad261c1a2636f373af1ed9b96 /desktop/xmonad/xmonad.SlackBuild
parent8863badc72be7687bea5e2a6352c379adc7e7d60 (diff)
downloadslackbuilds-bffbaabf9cb5353f073f22b42872088e59cc0e23.tar.gz
desktop/xmonad: Adjust build for ghc 7.4.x.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/xmonad/xmonad.SlackBuild')
-rw-r--r--desktop/xmonad/xmonad.SlackBuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/desktop/xmonad/xmonad.SlackBuild b/desktop/xmonad/xmonad.SlackBuild
index fb0bb01d0b..ba6ac1df1a 100644
--- a/desktop/xmonad/xmonad.SlackBuild
+++ b/desktop/xmonad/xmonad.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=xmonad
VERSION=${VERSION:-0.10}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
GHC_VERSION=$(ghc --numeric-version)
@@ -71,7 +71,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Enable -threaded -dynamic GHC options only for the binary, not for the libs
+# Enable -threaded GHC option only for the binary, not for the libs.
+# And raise haskell-X11 version.
patch -p0 <$CWD/xmonad_cabal.patch
CFLAGS="$SLKCFLAGS" \
@@ -81,8 +82,10 @@ runghc Setup configure \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--libsubdir=ghc-${GHC_VERSION}/$PRGNAM-$VERSION \
--enable-shared \
+ --enable-library-profiling \
+ --enable-executable-dynamic \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --flags="threaded dynamic"
+ --flags="threaded"
runghc Setup build
runghc Setup haddock