/[gentoo-x86]/eclass/haskell-cabal.eclass
Gentoo

Diff of /eclass/haskell-cabal.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.49 Revision 1.50
1# Copyright 1999-2015 Gentoo Foundation 1# Copyright 1999-2015 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.49 2015/03/15 17:03:27 slyfox Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.50 2015/03/28 13:32:40 slyfox Exp $
4 4
5# @ECLASS: haskell-cabal.eclass 5# @ECLASS: haskell-cabal.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Haskell herd <haskell@gentoo.org> 7# Haskell herd <haskell@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
386 $(ghc-supports-shared-libraries) && \ 386 $(ghc-supports-shared-libraries) && \
387 cabalconf+=(--enable-shared) 387 cabalconf+=(--enable-shared)
388 388
389 if $(ghc-supports-shared-libraries); then 389 if $(ghc-supports-shared-libraries); then
390 # maybe a bit lower 390 # maybe a bit lower
391 if $(ghc-supports-dynamic-by-default); then
392 cabalconf+=(--enable-shared) 391 cabalconf+=(--enable-shared)
392
393 # Experimental support for dynamically linked binaries.
394 # We are enabling it since 7.10.1_rc3
395 if version_is_at_least "7.10.0.20150316" "$(ghc-version)"; then
396 # Known to break on ghc-7.8/Cabal-1.18
397 # https://ghc.haskell.org/trac/ghc/ticket/9625
398 cabalconf+=(--enable-executable-dynamic)
393 fi 399 fi
394 fi 400 fi
395 401
396 # --sysconfdir appeared in Cabal-1.18+ 402 # --sysconfdir appeared in Cabal-1.18+
397 if ./setup configure --help | grep -q -- --sysconfdir; then 403 if ./setup configure --help | grep -q -- --sysconfdir; then

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50

  ViewVC Help
Powered by ViewVC 1.1.20