Skip to content

Commit

Permalink
dev-lang/ghc: add a USE=shared to live ebuild
Browse files Browse the repository at this point in the history
Switches ghc to build shared libraries by default
for experimental purposes.

Addresses Issue #216 (#216)

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  • Loading branch information
Sergei Trofimovich committed Feb 18, 2013
1 parent 1776433 commit 2b0bdbb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dev-lang/ghc/ghc-9999.ebuild
Expand Up @@ -55,7 +55,7 @@ fi
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS=""
IUSE="dph doc +ghcbootstrap ghcmakebinary llvm"
IUSE="dph doc +ghcbootstrap ghcmakebinary llvm +shared"
REQUIRED_USE="ghcbootstrap"

RDEPEND="
Expand Down Expand Up @@ -374,6 +374,13 @@ src_configure() {
echo "GhcLibWays=${GHC_LIBRARY_WAYS}" >> mk/build.mk
fi

# Experimental code. Not enabled by default in GHC yet.
if use shared; then
echo "DYNAMIC_BY_DEFAULT=YES" >> mk/build.mk
else
echo "DYNAMIC_BY_DEFAULT=NO" >> mk/build.mk
fi

# This is only for head builds
perl boot || die "perl boot failed"

Expand Down

0 comments on commit 2b0bdbb

Please sign in to comment.