Skip to content
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...
1 parent e221280 commit 0e8547761af02091775e055a6abb7118c05d726b @peti peti committed Nov 5, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 Distribution/ArchLinux/CabalTranslation.hs
View
2 Distribution/ArchLinux/CabalTranslation.hs
@@ -205,7 +205,7 @@ stubPackageLibrary _ = emptyPkgBuild {
"http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
, 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.
Something went wrong with that request. Please try again.