Browse files

CabalTranslation.hs: configure library builds with --enable-shared

Building libraries with --enable-shared is simple enough, but unfortunately
Cabal doesn't take advantage of shared libraries when linking executables (even
when --enable-shared is specified). Having shared libraries available is
beneficial anyway, though, because ArchLinux users may choose to build their
binaries with '--dynamic'.
  • Loading branch information...
peti committed Nov 5, 2010
1 parent e221280 commit 0e8547761af02091775e055a6abb7118c05d726b
Showing with 1 addition and 1 deletion.
  1. +1 −1 Distribution/ArchLinux/CabalTranslation.hs
@@ -205,7 +205,7 @@ stubPackageLibrary _ = emptyPkgBuild {
, arch_build =
[ "cd ${srcdir}/${_hkgname}-${pkgver}"
- , "runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs"
+ , "runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs --enable-shared"
, "runhaskell Setup build"
, "runhaskell Setup haddock"
, "runhaskell Setup register --gen-script"

0 comments on commit 0e85477

Please sign in to comment.